Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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.001329/0.001329, allocations: 118.3 kB / 18.49 MB, free: 4.535 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.00134/0.00134, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.479/1.479, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1086, allocations: 53.38 MB / 427 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2166/0.3251, allocations: 14.24 MB / 441.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03006/0.3552, allocations: 20.41 MB / 461.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004581/0.3598, allocations: 191.2 kB / 461.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00507/0.3649, allocations: 1.126 MB / 463 MB, free: 3.484 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01105/0.3759, allocations: 2.319 MB / 465.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006438/0.3823, allocations: 1.443 MB / 466.8 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.3944, allocations: 6.509 MB / 473.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007666/0.3951, allocations: 270 kB / 473.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.3973, allocations: 1.128 MB / 474.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00181/0.3991, allocations: 1.079 MB / 475.7 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002294/0.3993, allocations: 73.59 kB / 475.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005378/0.4047, allocations: 1.485 MB / 477.3 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005491/0.4053, allocations: 323.2 kB / 477.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002497/0.4078, allocations: 1.321 MB / 478.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009912/0.4177, allocations: 3.709 MB / 482.6 MB, free: 8.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.443e-06/0.4177, allocations: 0 / 482.6 MB, free: 8.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.4177, allocations: 1.375 kB / 482.7 MB, free: 8.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.4179, allocations: 1.125 kB / 482.7 MB, free: 8.805 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.008018/0.4259, allocations: 3.684 MB / 486.3 MB, free: 5.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.4259, allocations: 20.02 kB / 486.4 MB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.717e-05/0.426, allocations: 13 kB / 486.4 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.4261, allocations: 102.5 kB / 486.5 MB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.4267, allocations: 397.5 kB / 486.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004178/0.4309, allocations: 2.555 MB / 489.4 MB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.4309, allocations: 29 kB / 489.4 MB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.431, allocations: 50.91 kB / 489.5 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.4326, allocations: 0.7616 MB / 490.3 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4327, allocations: 0 / 490.3 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/0.4327, allocations: 19.98 kB / 490.3 MB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/0.4328, allocations: 27.92 kB / 490.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4346, allocations: 0.8514 MB / 491.2 MB, free: 212 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.4401, allocations: 2.971 MB / 494.1 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.4419, allocations: 0.7246 MB / 494.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.4434, allocations: 0.855 MB / 495.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03261/0.476, allocations: 30.69 MB / 0.5141 GB, free: 8.633 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.4772, allocations: 0.6035 MB / 0.5146 GB, free: 8.016 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.825e-06/0.4772, allocations: 0 / 0.5146 GB, free: 8.016 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01393/0.4912, allocations: 5.266 MB / 0.5198 GB, free: 2.508 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.4913, allocations: 72.39 kB / 0.5199 GB, free: 2.422 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004276/0.4955, allocations: 2.688 MB / 0.5225 GB, free: 15.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.4957, allocations: 45.7 kB / 0.5225 GB, free: 15.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.497, allocations: 1.3 MB / 0.5238 GB, free: 14.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000384/0.4974, allocations: 357 kB / 0.5241 GB, free: 14.01 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004235/0.4978, allocations: 238.4 kB / 0.5244 GB, free: 13.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.498, allocations: 345.9 kB / 0.5247 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.4994, allocations: 474 kB / 0.5251 GB, free: 12.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.501, allocations: 0.6536 MB / 0.5258 GB, free: 12.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.5037, allocations: 1.126 MB / 0.5269 GB, free: 11.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.5038, allocations: 7.938 kB / 0.5269 GB, free: 11.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004679/0.5084, allocations: 1.985 MB / 0.5288 GB, free: 8.992 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.5085, allocations: 4 kB / 0.5288 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001657/0.5086, allocations: 120.5 kB / 0.5289 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007194/0.5093, allocations: 271.3 kB / 0.5292 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008784/0.5102, allocations: 195.7 kB / 0.5294 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01091/0.5211, allocations: 14.25 MB / 0.5433 GB, free: 8.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/0.5233, allocations: 87.91 kB / 0.5434 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.5234, allocations: 59.98 kB / 0.5434 GB, free: 8.609 MB / 462.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.0009427/0.5244, allocations: 417.7 kB / 0.5438 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005241/0.5249, allocations: 389.6 kB / 0.5442 GB, free: 7.809 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005237/0.5301, allocations: 2.224 MB / 0.5464 GB, free: 5.504 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.5302, allocations: 8 kB / 0.5464 GB, free: 5.496 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.5302, allocations: 4 kB / 0.5464 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.5302, allocations: 7.984 kB / 0.5464 GB, free: 5.484 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.533, allocations: 1.539 MB / 0.5479 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001583/0.5331, allocations: 112 kB / 0.548 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007506/0.5339, allocations: 131.8 kB / 0.5481 GB, free: 3.656 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007033/0.5346, allocations: 268.3 kB / 0.5484 GB, free: 3.363 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.873e-05/0.5347, allocations: 47.91 kB / 0.5484 GB, free: 3.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.5457, allocations: 14.24 MB / 0.5624 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5457, allocations: 3.984 kB / 0.5624 GB, free: 3.668 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006294/0.552, allocations: 2.557 MB / 0.5649 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.5534, allocations: 0.4946 MB / 0.5653 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.5537, allocations: 27.98 kB / 0.5654 GB, free: 488 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009908/0.5547, allocations: 79.89 kB / 0.5654 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00042/0.5551, allocations: 136.8 kB / 0.5656 GB, free: 272 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.5552, allocations: 59.92 kB / 0.5656 GB, free: 212 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002883/0.5581, allocations: 1.77 MB / 0.5674 GB, free: 14.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5581, allocations: 0 / 0.5674 GB, free: 14.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001962/0.5601, allocations: 0.6557 MB / 0.568 GB, free: 13.77 MB / 494.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.008336/0.5684, allocations: 3.837 MB / 0.5717 GB, free: 9.844 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005152/0.5736, allocations: 2.44 MB / 0.5741 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5736, allocations: 0 / 0.5741 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003379/0.577, allocations: 1.909 MB / 0.576 GB, free: 5.184 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003388/0.5803, allocations: 0.6199 MB / 0.5766 GB, free: 4.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03525/0.6156, allocations: 18.21 MB / 0.5944 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.6169, allocations: 1.658 MB / 0.596 GB, free: 216 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00137/0.6183, allocations: 391.4 kB / 0.5964 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001493/0.6198, allocations: 1.194 MB / 0.5975 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of SimCode: time 1.633e-06/0.6198, allocations: 4 kB / 0.5975 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.383/1.003, allocations: 66.92 MB / 0.6629 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.32/19.32, allocations: 9.688 kB / 0.6629 GB, free: 170.9 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.930655550968368] 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'] 19.511652543966193 19.532147945 19.110283172 Calling exit ...