Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.001516/0.001516, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.001567/0.001567, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.5 MB / 254.7 MB, free: 15.15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 59.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 53.38 MB / 427.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01475/0.1208, allocations: 14.07 MB / 441.1 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2555/0.3764, allocations: 20.36 MB / 461.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.3789, allocations: 194.7 kB / 461.7 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003267/0.3822, allocations: 1.119 MB / 462.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00911/0.3913, allocations: 2.296 MB / 465.1 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00627/0.3975, allocations: 1.426 MB / 466.5 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.4091, allocations: 6.455 MB / 473 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007532/0.4098, allocations: 252.4 kB / 473.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.4124, allocations: 1.107 MB / 474.3 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002142/0.4145, allocations: 1.055 MB / 475.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002469/0.4148, allocations: 70.34 kB / 475.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006268/0.4211, allocations: 1.472 MB / 476.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004841/0.4215, allocations: 304.9 kB / 477.2 MB, free: 1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00203/0.4236, allocations: 1.3 MB / 478.5 MB, free: 184 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009832/0.4334, allocations: 3.658 MB / 482.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.4334, allocations: 0 / 482.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.4334, allocations: 0 / 482.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000135/0.4336, allocations: 0 / 482.2 MB, free: 14.43 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007822/0.4414, allocations: 3.637 MB / 485.8 MB, free: 11.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.4414, allocations: 13.03 kB / 485.8 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.517e-05/0.4415, allocations: 13.62 kB / 485.8 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.4416, allocations: 100.4 kB / 485.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000999/0.4426, allocations: 389.1 kB / 486.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004621/0.4472, allocations: 2.527 MB / 488.8 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/0.4473, allocations: 32.28 kB / 488.9 MB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.4474, allocations: 53.41 kB / 488.9 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.4488, allocations: 0.7112 MB / 489.6 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.4489, allocations: 5.031 kB / 489.6 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.4489, allocations: 17.12 kB / 489.7 MB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.18e-05/0.449, allocations: 20.89 kB / 489.7 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.4506, allocations: 0.7878 MB / 490.5 MB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005831/0.4565, allocations: 2.878 MB / 493.3 MB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.4577, allocations: 0.64 MB / 494 MB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009648/0.4587, allocations: 0.5687 MB / 494.6 MB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03294/0.4916, allocations: 30.73 MB / 0.513 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008248/0.4924, allocations: 361.7 kB / 0.5133 GB, free: 3.551 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.835e-06/0.4925, allocations: 0 / 0.5133 GB, free: 3.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003541/0.496, allocations: 1.39 MB / 0.5147 GB, free: 2.137 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.496, allocations: 75.31 kB / 0.5147 GB, free: 2.051 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003904/0.5, allocations: 2.796 MB / 0.5175 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.443e-05/0.5, allocations: 33.7 kB / 0.5175 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.5014, allocations: 1.396 MB / 0.5189 GB, free: 13.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.5016, allocations: 178.6 kB / 0.519 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003365/0.5019, allocations: 222.4 kB / 0.5192 GB, free: 13.39 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5021, allocations: 345.9 kB / 0.5196 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006016/0.5027, allocations: 237.9 kB / 0.5198 GB, free: 12.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008818/0.5036, allocations: 0.5813 MB / 0.5204 GB, free: 12.06 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/0.5051, allocations: 0.8847 MB / 0.5212 GB, free: 11.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.5051, allocations: 7.938 kB / 0.5212 GB, free: 11 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002731/0.5078, allocations: 1.277 MB / 0.5225 GB, free: 9.707 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.5079, allocations: 12 kB / 0.5225 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.508, allocations: 80 kB / 0.5226 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005926/0.5086, allocations: 284.9 kB / 0.5229 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005758/0.5092, allocations: 166.7 kB / 0.523 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.5103, allocations: 0.8802 MB / 0.5239 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.5118, allocations: 119.3 kB / 0.524 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.512, allocations: 64 kB / 0.524 GB, free: 8.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0008153/0.5128, allocations: 417.5 kB / 0.5244 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005384/0.5133, allocations: 385.5 kB / 0.5248 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002952/0.5163, allocations: 1.254 MB / 0.526 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/0.5163, allocations: 4 kB / 0.526 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5163, allocations: 0 / 0.526 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.5163, allocations: 3.984 kB / 0.526 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.5205, allocations: 2.185 MB / 0.5282 GB, free: 3.758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-05/0.5206, allocations: 68 kB / 0.5282 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.521, allocations: 68 kB / 0.5283 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005134/0.5215, allocations: 272 kB / 0.5286 GB, free: 3.359 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.5215, allocations: 31.98 kB / 0.5286 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009967/0.5225, allocations: 0.8724 MB / 0.5295 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.5225, allocations: 0 / 0.5295 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002319/0.5248, allocations: 1.143 MB / 0.5306 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.526, allocations: 478.5 kB / 0.531 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/0.5264, allocations: 15.98 kB / 0.531 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006882/0.5271, allocations: 31.91 kB / 0.5311 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.5272, allocations: 63.94 kB / 0.5311 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.5273, allocations: 40 kB / 0.5312 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002714/0.53, allocations: 1.82 MB / 0.5329 GB, free: 14.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.53, allocations: 0 / 0.5329 GB, free: 14.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001854/0.5319, allocations: 0.5696 MB / 0.5335 GB, free: 14.21 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003675/0.5356, allocations: 2.364 MB / 0.5358 GB, free: 11.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.5375, allocations: 0.8223 MB / 0.5366 GB, free: 10.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5375, allocations: 0 / 0.5366 GB, free: 10.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009931/0.5385, allocations: 468.4 kB / 0.5371 GB, free: 10.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/0.5417, allocations: 0.6011 MB / 0.5376 GB, free: 9.891 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02598/0.5676, allocations: 16.04 MB / 0.5533 GB, free: 9.293 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/0.569, allocations: 1.6 MB / 0.5549 GB, free: 7.664 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.5703, allocations: 386.9 kB / 0.5552 GB, free: 7.281 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/0.5716, allocations: 1.124 MB / 0.5563 GB, free: 6.156 MB / 462.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5716, allocations: 0 / 0.5563 GB, free: 6.156 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1566/0.7282, allocations: 62.58 MB / 0.6175 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.93/20.66, allocations: 8 kB / 0.6175 GB, free: 7.871 MB / 0.5137 GB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.27319402899593] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 20.850631545996293 20.87687123 20.439363327 Calling exit ...