Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 116.6 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 193 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 51.92 kB / 366.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.138, allocations: 52.14 MB / 418.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02105/0.1591, allocations: 14.23 MB / 432.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2618/0.4209, allocations: 20.35 MB / 453.1 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.424, allocations: 191.4 kB / 453.2 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003178/0.4271, allocations: 1.132 MB / 454.4 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.4375, allocations: 2.308 MB / 456.7 MB, free: 6.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006027/0.4435, allocations: 1.446 MB / 458.1 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.4542, allocations: 6.442 MB / 464.6 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006864/0.4549, allocations: 252.4 kB / 464.8 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.4568, allocations: 1.13 MB / 465.9 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001475/0.4583, allocations: 1.085 MB / 467 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002136/0.4585, allocations: 75.62 kB / 467.1 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00489/0.4634, allocations: 1.474 MB / 468.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000725/0.4641, allocations: 318.6 kB / 468.9 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.4665, allocations: 1.328 MB / 470.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008031/0.4745, allocations: 3.707 MB / 473.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.4745, allocations: 1 kB / 473.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4745, allocations: 4 kB / 473.9 MB, free: 1.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001471/0.4747, allocations: 0 / 473.9 MB, free: 1.824 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.008173/0.4828, allocations: 3.682 MB / 477.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.4829, allocations: 9.625 kB / 477.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.443e-05/0.4829, allocations: 13.38 kB / 477.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.4831, allocations: 95.44 kB / 477.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/0.4841, allocations: 397.2 kB / 478.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005193/0.4893, allocations: 2.554 MB / 480.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.938e-05/0.4893, allocations: 36.66 kB / 480.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001784/0.4895, allocations: 59.28 kB / 480.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.4914, allocations: 0.7548 MB / 481.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.4914, allocations: 0 / 481.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/0.4915, allocations: 26.06 kB / 481.5 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.884e-05/0.4916, allocations: 20.89 kB / 481.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.4934, allocations: 0.8566 MB / 482.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006442/0.4999, allocations: 2.974 MB / 485.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/0.502, allocations: 0.7209 MB / 486.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.5035, allocations: 0.8664 MB / 487 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03276/0.5363, allocations: 30.06 MB / 0.5049 GB, free: 9.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.5375, allocations: 0.5957 MB / 0.5055 GB, free: 8.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.665e-06/0.5375, allocations: 0 / 0.5055 GB, free: 8.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01315/0.5507, allocations: 5.266 MB / 0.5106 GB, free: 3.062 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.5508, allocations: 72.34 kB / 0.5107 GB, free: 2.977 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003528/0.5543, allocations: 2.704 MB / 0.5134 GB, free: 264 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.5544, allocations: 41.7 kB / 0.5134 GB, free: 216 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.5556, allocations: 1.304 MB / 0.5147 GB, free: 14.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.5559, allocations: 353.4 kB / 0.515 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003764/0.5563, allocations: 234.4 kB / 0.5152 GB, free: 14.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5564, allocations: 341.9 kB / 0.5156 GB, free: 13.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.5577, allocations: 482.5 kB / 0.516 GB, free: 13.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.5591, allocations: 0.6431 MB / 0.5166 GB, free: 12.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/0.5619, allocations: 1.133 MB / 0.5177 GB, free: 11.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5619, allocations: 0 / 0.5177 GB, free: 11.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004439/0.5663, allocations: 1.984 MB / 0.5197 GB, free: 9.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.5663, allocations: 8 kB / 0.5197 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/0.5665, allocations: 120 kB / 0.5198 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007052/0.5672, allocations: 261.8 kB / 0.5201 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/0.5681, allocations: 207.6 kB / 0.5203 GB, free: 8.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.579, allocations: 14.26 MB / 0.5342 GB, free: 9.332 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.5809, allocations: 87.97 kB / 0.5343 GB, free: 9.246 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.5811, allocations: 59.98 kB / 0.5343 GB, free: 9.188 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009044/0.582, allocations: 425.6 kB / 0.5347 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005251/0.5825, allocations: 385.5 kB / 0.5351 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/0.5876, allocations: 2.212 MB / 0.5373 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.5876, allocations: 12 kB / 0.5373 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.5877, allocations: 4 kB / 0.5373 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.5877, allocations: 11.97 kB / 0.5373 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.59, allocations: 1.551 MB / 0.5388 GB, free: 4.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001511/0.5901, allocations: 112 kB / 0.5389 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000742/0.5909, allocations: 139.8 kB / 0.539 GB, free: 4.238 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000694/0.5916, allocations: 264.3 kB / 0.5393 GB, free: 3.949 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.513e-05/0.5917, allocations: 47.98 kB / 0.5393 GB, free: 3.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.6024, allocations: 14.25 MB / 0.5532 GB, free: 4.258 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6024, allocations: 0 / 0.5532 GB, free: 4.258 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006003/0.6084, allocations: 2.554 MB / 0.5557 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/0.6096, allocations: 0.5102 MB / 0.5562 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.61, allocations: 19.98 kB / 0.5563 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.611, allocations: 79.89 kB / 0.5563 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003735/0.6114, allocations: 136.8 kB / 0.5565 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.6115, allocations: 51.98 kB / 0.5565 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002527/0.614, allocations: 1.766 MB / 0.5582 GB, free: 15.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.614, allocations: 0 / 0.5582 GB, free: 15.03 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001797/0.6158, allocations: 0.6518 MB / 0.5589 GB, free: 14.38 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007052/0.6229, allocations: 3.84 MB / 0.5626 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004279/0.6272, allocations: 2.452 MB / 0.565 GB, free: 7.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6272, allocations: 4.188 kB / 0.565 GB, free: 7.977 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002671/0.6298, allocations: 1.894 MB / 0.5669 GB, free: 5.93 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/0.6327, allocations: 0.6202 MB / 0.5675 GB, free: 5.305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02862/0.6613, allocations: 18.21 MB / 0.5853 GB, free: 2.656 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.6626, allocations: 1.658 MB / 0.5869 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001134/0.6637, allocations: 391.4 kB / 0.5873 GB, free: 0.582 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/0.6652, allocations: 1.205 MB / 0.5884 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of SimCode: time 7.22e-07/0.6652, allocations: 0 / 0.5884 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3317/0.9969, allocations: 66.91 MB / 0.6538 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.2/18.2, allocations: 14.06 kB / 0.6538 GB, free: 184.9 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.776924384990707] Failed to read output from testmodel.py, exit status != 0: ['time', 'mn1.Dinternal', 'mn1.Sinternal', 'mn2.Dinternal', 'mn2.Sinternal', 'mp1.Dinternal', 'mp1.Sinternal', 'mp2.Dinternal', 'mp2.Sinternal'] 18.383628139970824 18.400503348 17.922283298 Calling exit ...