Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 254.8 MB, free: 15.22 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 47.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.1013, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01365/0.115, allocations: 14.07 MB / 441.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2226/0.3376, allocations: 20.36 MB / 461.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.3398, allocations: 187.3 kB / 461.6 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003637/0.3435, allocations: 1.123 MB / 462.7 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009739/0.3532, allocations: 2.296 MB / 465 MB, free: 5.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006551/0.3597, allocations: 1.431 MB / 466.5 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.3707, allocations: 6.447 MB / 472.9 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005983/0.3713, allocations: 253.8 kB / 473.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.3731, allocations: 1.104 MB / 474.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.3743, allocations: 1.048 MB / 475.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.3745, allocations: 70.09 kB / 475.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00481/0.3793, allocations: 1.476 MB / 476.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003762/0.3797, allocations: 320.8 kB / 477.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.3813, allocations: 1.292 MB / 478.5 MB, free: 388 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007774/0.389, allocations: 3.658 MB / 482.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3891, allocations: 3.984 kB / 482.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3891, allocations: 0 / 482.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.3892, allocations: 0 / 482.1 MB, free: 14.64 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.007825/0.397, allocations: 3.636 MB / 485.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.397, allocations: 9.969 kB / 485.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.331e-05/0.3971, allocations: 12.88 kB / 485.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.3972, allocations: 92.77 kB / 485.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008453/0.3981, allocations: 393.6 kB / 486.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004364/0.4024, allocations: 2.532 MB / 488.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.4025, allocations: 34.53 kB / 488.8 MB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.4026, allocations: 52.28 kB / 488.9 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.4039, allocations: 0.7019 MB / 489.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4039, allocations: 0 / 489.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.06e-05/0.404, allocations: 24.38 kB / 489.6 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.404, allocations: 22.83 kB / 489.6 MB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.4056, allocations: 0.7805 MB / 490.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005556/0.4111, allocations: 2.889 MB / 493.3 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.4123, allocations: 0.638 MB / 493.9 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009214/0.4133, allocations: 0.569 MB / 494.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03155/0.4448, allocations: 30.72 MB / 0.5129 GB, free: 4.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007749/0.4456, allocations: 361.6 kB / 0.5133 GB, free: 3.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.435e-06/0.4456, allocations: 0 / 0.5133 GB, free: 3.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003526/0.4491, allocations: 1.404 MB / 0.5146 GB, free: 2.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.4492, allocations: 59.41 kB / 0.5147 GB, free: 2.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003742/0.4529, allocations: 2.799 MB / 0.5174 GB, free: 15.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.402e-05/0.453, allocations: 33.7 kB / 0.5174 GB, free: 15.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.4543, allocations: 1.396 MB / 0.5188 GB, free: 14.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.4545, allocations: 178.5 kB / 0.519 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003437/0.4548, allocations: 222.4 kB / 0.5192 GB, free: 13.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.455, allocations: 341.9 kB / 0.5195 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.4556, allocations: 241.9 kB / 0.5198 GB, free: 13.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009617/0.4566, allocations: 0.593 MB / 0.5203 GB, free: 12.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.4582, allocations: 0.8763 MB / 0.5212 GB, free: 11.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.4582, allocations: 4 kB / 0.5212 GB, free: 11.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00277/0.4609, allocations: 1.282 MB / 0.5224 GB, free: 9.926 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.461, allocations: 15.94 kB / 0.5225 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/0.4611, allocations: 81.66 kB / 0.5225 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005875/0.4617, allocations: 276.7 kB / 0.5228 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005763/0.4623, allocations: 176.4 kB / 0.523 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009894/0.4633, allocations: 0.8743 MB / 0.5238 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.4648, allocations: 115.3 kB / 0.5239 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.4649, allocations: 60 kB / 0.524 GB, free: 8.316 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.0007929/0.4657, allocations: 421.5 kB / 0.5244 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004728/0.4662, allocations: 393.5 kB / 0.5248 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/0.469, allocations: 1.248 MB / 0.526 GB, free: 6.254 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.597e-06/0.469, allocations: 7.938 kB / 0.526 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.469, allocations: 0.875 kB / 0.526 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.469, allocations: 7.984 kB / 0.526 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003935/0.473, allocations: 2.181 MB / 0.5281 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.853e-05/0.4731, allocations: 68 kB / 0.5282 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.4734, allocations: 59.94 kB / 0.5283 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000501/0.4739, allocations: 268.8 kB / 0.5285 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.053e-05/0.474, allocations: 36.86 kB / 0.5285 GB, free: 3.547 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009853/0.475, allocations: 0.8637 MB / 0.5294 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.475, allocations: 3.984 kB / 0.5294 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.4772, allocations: 1.146 MB / 0.5305 GB, free: 1.473 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008815/0.4781, allocations: 482.5 kB / 0.531 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.4783, allocations: 11.94 kB / 0.531 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.479, allocations: 41.22 kB / 0.531 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.4791, allocations: 59.94 kB / 0.5311 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.4792, allocations: 36 kB / 0.5311 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002488/0.4817, allocations: 1.827 MB / 0.5329 GB, free: 15 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4817, allocations: 4 kB / 0.5329 GB, free: 15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001464/0.4831, allocations: 0.5735 MB / 0.5335 GB, free: 14.43 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.003556/0.4867, allocations: 2.355 MB / 0.5358 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.4886, allocations: 0.8191 MB / 0.5366 GB, free: 11.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4886, allocations: 128 / 0.5366 GB, free: 11.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009288/0.4895, allocations: 472.1 kB / 0.537 GB, free: 10.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.4925, allocations: 0.5946 MB / 0.5376 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02252/0.515, allocations: 16.04 MB / 0.5533 GB, free: 9.504 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.5161, allocations: 1.6 MB / 0.5548 GB, free: 7.875 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.5171, allocations: 394.9 kB / 0.5552 GB, free: 7.484 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/0.5183, allocations: 1.12 MB / 0.5563 GB, free: 6.363 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5183, allocations: 0 / 0.5563 GB, free: 6.363 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/0.6267, allocations: 62.59 MB / 0.6174 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.46/19.09, allocations: 8 kB / 0.6174 GB, free: 8.16 MB / 0.5137 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --stepSize=3.98724e-11 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.58487081201747] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 19.27372308797203 19.288811319 18.896588597 Calling exit ...