Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001876/0.001876, allocations: 121.4 kB / 18.5 MB, free: 4.52 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.002942/0.002942, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.62/1.62, allocations: 230.5 MB / 254.8 MB, free: 15.06 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.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand",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.002093/0.002093, allocations: 75.81 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1225, allocations: 53.32 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.2589/0.3814, allocations: 14.07 MB / 441.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03344/0.4148, allocations: 20.36 MB / 461.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004745/0.4196, allocations: 191.6 kB / 461.6 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005978/0.4256, allocations: 1.135 MB / 462.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01322/0.4388, allocations: 2.292 MB / 465 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00807/0.4469, allocations: 1.435 MB / 466.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01604/0.4629, allocations: 6.441 MB / 472.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.464, allocations: 252.3 kB / 473.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.4673, allocations: 1.101 MB / 474.3 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002678/0.47, allocations: 1.052 MB / 475.3 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002835/0.4703, allocations: 73.88 kB / 475.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007005/0.4773, allocations: 1.48 MB / 476.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007542/0.478, allocations: 310.7 kB / 477.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.4809, allocations: 1.298 MB / 478.5 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.4909, allocations: 3.656 MB / 482.1 MB, free: 9.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.4909, allocations: 0 / 482.1 MB, free: 9.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4909, allocations: 0 / 482.1 MB, free: 9.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001595/0.4911, allocations: 1.375 kB / 482.1 MB, free: 9.395 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.008778/0.4999, allocations: 3.627 MB / 485.7 MB, free: 5.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.4999, allocations: 16.03 kB / 485.8 MB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002868/0.5002, allocations: 90.52 kB / 485.8 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006735/0.5009, allocations: 393.5 kB / 486.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004658/0.5055, allocations: 2.531 MB / 488.8 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.5056, allocations: 33 kB / 488.8 MB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.5057, allocations: 47.95 kB / 488.8 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.5071, allocations: 0.707 MB / 489.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.5072, allocations: 0 / 489.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.5072, allocations: 16 kB / 489.6 MB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.5073, allocations: 23.98 kB / 489.6 MB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.5089, allocations: 0.7895 MB / 490.4 MB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005872/0.5148, allocations: 2.88 MB / 493.3 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.5163, allocations: 0.6453 MB / 493.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.5173, allocations: 0.5741 MB / 494.5 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03572/0.553, allocations: 30.73 MB / 0.5129 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008202/0.5539, allocations: 365.5 kB / 0.5132 GB, free: 9.668 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.825e-06/0.5539, allocations: 0 / 0.5132 GB, free: 9.668 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003738/0.5576, allocations: 1.397 MB / 0.5146 GB, free: 8.242 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.5577, allocations: 59.41 kB / 0.5147 GB, free: 8.172 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003967/0.5616, allocations: 2.799 MB / 0.5174 GB, free: 5.352 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.084e-05/0.5617, allocations: 37.7 kB / 0.5174 GB, free: 5.309 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.5631, allocations: 1.392 MB / 0.5188 GB, free: 3.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.5633, allocations: 174.6 kB / 0.519 GB, free: 3.738 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/0.5636, allocations: 222.4 kB / 0.5192 GB, free: 3.516 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.5638, allocations: 341.9 kB / 0.5195 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.5645, allocations: 233.9 kB / 0.5197 GB, free: 2.949 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009364/0.5654, allocations: 0.5969 MB / 0.5203 GB, free: 2.184 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001615/0.567, allocations: 0.8763 MB / 0.5212 GB, free: 1.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.567, allocations: 4 kB / 0.5212 GB, free: 1.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002743/0.5698, allocations: 1.283 MB / 0.5224 GB, free: 15.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.5698, allocations: 16 kB / 0.5224 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000126/0.5699, allocations: 83.98 kB / 0.5225 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006104/0.5706, allocations: 272.7 kB / 0.5228 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.5712, allocations: 163.7 kB / 0.5229 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.5723, allocations: 0.8764 MB / 0.5238 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.5737, allocations: 123.2 kB / 0.5239 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.5738, allocations: 64 kB / 0.524 GB, free: 14.23 MB / 446.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.0008136/0.5746, allocations: 430.7 kB / 0.5244 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004801/0.5751, allocations: 377.6 kB / 0.5247 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/0.5781, allocations: 1.259 MB / 0.526 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.5781, allocations: 7.984 kB / 0.526 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5782, allocations: 0 / 0.526 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.5782, allocations: 3.938 kB / 0.526 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004289/0.5824, allocations: 2.193 MB / 0.5281 GB, free: 9.867 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001142/0.5826, allocations: 71.98 kB / 0.5282 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.5829, allocations: 56.95 kB / 0.5282 GB, free: 9.742 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005973/0.5835, allocations: 262.1 kB / 0.5285 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.5835, allocations: 32 kB / 0.5285 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.5846, allocations: 0.8678 MB / 0.5294 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5846, allocations: 0 / 0.5294 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.5869, allocations: 1.146 MB / 0.5305 GB, free: 7.379 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009317/0.5878, allocations: 486.4 kB / 0.5309 GB, free: 6.883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003822/0.5882, allocations: 8.875 kB / 0.531 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006497/0.5888, allocations: 31.95 kB / 0.531 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.589, allocations: 63.89 kB / 0.531 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.73e-05/0.5891, allocations: 36 kB / 0.5311 GB, free: 6.746 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002712/0.5918, allocations: 1.828 MB / 0.5329 GB, free: 4.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5918, allocations: 0 / 0.5329 GB, free: 4.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001683/0.5935, allocations: 0.5696 MB / 0.5334 GB, free: 4.344 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.003712/0.5972, allocations: 2.367 MB / 0.5357 GB, free: 1.934 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002023/0.5992, allocations: 0.8152 MB / 0.5365 GB, free: 1.102 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5992, allocations: 4 kB / 0.5365 GB, free: 1.098 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.6002, allocations: 472.1 kB / 0.537 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.6031, allocations: 0.594 MB / 0.5376 GB, free: 24 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0259/0.629, allocations: 16.03 MB / 0.5532 GB, free: 15.43 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.6304, allocations: 1.6 MB / 0.5548 GB, free: 13.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.6314, allocations: 390.9 kB / 0.5552 GB, free: 13.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.6328, allocations: 1.124 MB / 0.5563 GB, free: 12.29 MB / 478.1 MB Notification: Performance of SimCode: time 1.113e-06/0.6328, allocations: 0 / 0.5563 GB, free: 12.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3576/0.9903, allocations: 62.57 MB / 0.6174 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.62/21.62, allocations: 1.844 kB / 0.6174 GB, free: 164.2 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98724e-11 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.42196824029088] Failed to read output from testmodel.py, exit status != 0: ['time', 'mp2.S.v'] 21.75042348075658 21.763342411 21.269202481 Calling exit ...