Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001719/0.001719, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001972, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002966/0.002966, allocations: 67.88 kB / 373.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1197, allocations: 53.31 MB / 426.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006439/0.1262, allocations: 4.273 MB / 431.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2162/0.3423, allocations: 1.207 MB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004899/0.3428, allocations: 9.469 kB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.3431, allocations: 108.4 kB / 432.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004035/0.3435, allocations: 188.2 kB / 432.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007036/0.3442, allocations: 330.2 kB / 433 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001064/0.3453, allocations: 1.092 MB / 434.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003541/0.3457, allocations: 194.1 kB / 434.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004862/0.3461, allocations: 412.8 kB / 434.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004463/0.3466, allocations: 469.4 kB / 435.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.3467, allocations: 117.9 kB / 435.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.3469, allocations: 119.4 kB / 435.4 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.347, allocations: 222.8 kB / 435.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003344/0.3474, allocations: 445.3 kB / 436 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.3486, allocations: 1.227 MB / 437.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3486, allocations: 0 / 437.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3486, allocations: 1.156 kB / 437.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.3486, allocations: 3.875 kB / 437.3 MB, free: 6.438 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002727/0.3514, allocations: 1.272 MB / 438.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3514, allocations: 13.66 kB / 438.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.3515, allocations: 104.2 kB / 438.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3517, allocations: 88.39 kB / 438.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/0.3523, allocations: 492.6 kB / 439.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.577e-05/0.3523, allocations: 45.97 kB / 439.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.3524, allocations: 55.75 kB / 439.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/0.3545, allocations: 0.976 MB / 440.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3545, allocations: 0.875 kB / 440.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.706e-05/0.3546, allocations: 23.81 kB / 440.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.3546, allocations: 19.42 kB / 440.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002659/0.3572, allocations: 0.9989 MB / 441.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004567/0.3618, allocations: 3.203 MB / 444.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.3639, allocations: 0.8819 MB / 445.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.365, allocations: 426.7 kB / 445.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.502e-05/0.3651, allocations: 14.31 kB / 445.8 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.3662, allocations: 469.2 kB / 446.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.134e-06/0.3662, allocations: 0 / 446.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003038/0.3693, allocations: 1.097 MB / 447.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.3694, allocations: 378.9 kB / 447.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008076/0.3702, allocations: 0.5737 MB / 448.3 MB, free: 420 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.515e-05/0.3702, allocations: 38.95 kB / 448.4 MB, free: 380 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.3704, allocations: 376.5 kB / 448.7 MB, free: 72 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.3706, allocations: 184.6 kB / 448.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.3709, allocations: 137.6 kB / 449.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3711, allocations: 376.7 kB / 449.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.3722, allocations: 402.8 kB / 449.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.3736, allocations: 0.6762 MB / 450.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.3758, allocations: 0.9717 MB / 451.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.3758, allocations: 5.188 kB / 451.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002812/0.3786, allocations: 1.139 MB / 452.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.364e-05/0.3787, allocations: 65.03 kB / 452.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3787, allocations: 6.875 kB / 452.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3787, allocations: 9.625 kB / 452.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009665/0.3797, allocations: 225.2 kB / 452.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.3797, allocations: 16.16 kB / 452.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.3808, allocations: 191.1 kB / 453.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.503e-05/0.3808, allocations: 31.14 kB / 453.1 MB, free: 13.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003388/0.3812, allocations: 225.6 kB / 453.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.3813, allocations: 73.86 kB / 453.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001619/0.3815, allocations: 75.02 kB / 453.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.3815, allocations: 5.156 kB / 453.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3815, allocations: 3.938 kB / 453.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3815, allocations: 3.922 kB / 453.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00333/0.3848, allocations: 1.669 MB / 455.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3848, allocations: 0 / 455.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007522/0.3856, allocations: 153 kB / 455.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3856, allocations: 1.5 kB / 455.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.835e-05/0.3856, allocations: 15.64 kB / 455.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.3856, allocations: 3.844 kB / 455.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.3856, allocations: 3.938 kB / 455.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003179/0.3888, allocations: 1.299 MB / 456.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.389, allocations: 153.4 kB / 456.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3891, allocations: 13.31 kB / 456.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007312/0.3899, allocations: 109.2 kB / 456.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.39, allocations: 51.88 kB / 457 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.232e-05/0.39, allocations: 15.55 kB / 457 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006337/0.3907, allocations: 405.8 kB / 457.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3907, allocations: 0 / 457.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006901/0.3913, allocations: 181 kB / 457.6 MB, free: 11.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003569/0.3949, allocations: 1.867 MB / 459.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.3975, allocations: 0.964 MB / 460.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.3975, allocations: 5.406 kB / 460.4 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.3986, allocations: 383.2 kB / 460.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006667/0.3992, allocations: 109.9 kB / 460.9 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.4117, allocations: 6.471 MB / 467.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005904/0.4123, allocations: 0.8806 MB / 468.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000452/0.4127, allocations: 83.86 kB / 468.3 MB, free: 4.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003846/0.4131, allocations: 237.3 kB / 468.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4131, allocations: 0 / 468.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05214/0.4652, allocations: 14.52 MB / 483.1 MB, free: 6.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.878/9.343, allocations: 8 kB / 483.1 MB, free: 6.762 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --stepSize=1.97668e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.709376056212932] Failed to read output from testmodel.py, exit status != 0: ['time', 'Nand.C4.v', 'Nand.C7.v'] 9.419561398681253 9.431607845 9.080143778 Calling exit ...