Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001512/0.001512, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001736/0.001736, allocations: 212 kB / 24.54 MB, free: 4.016 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.457/1.457, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.Nor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor",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.001993/0.001993, allocations: 72.77 kB / 378.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2906, allocations: 53.38 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01549/0.3061, allocations: 14.25 MB / 446.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02974/0.3358, allocations: 20.42 MB / 466.6 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003496/0.3393, allocations: 189.8 kB / 466.8 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00412/0.3434, allocations: 1.139 MB / 467.9 MB, free: 2.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.3536, allocations: 2.339 MB / 470.2 MB, free: 376 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005943/0.3595, allocations: 1.461 MB / 471.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.3717, allocations: 6.536 MB / 478.2 MB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009571/0.3726, allocations: 253 kB / 478.5 MB, free: 8.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.3748, allocations: 1.136 MB / 479.6 MB, free: 6.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/0.3766, allocations: 1.083 MB / 480.7 MB, free: 5.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.3768, allocations: 76 kB / 480.8 MB, free: 5.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005601/0.3824, allocations: 1.483 MB / 482.3 MB, free: 4.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007097/0.3832, allocations: 321.7 kB / 482.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002355/0.3855, allocations: 1.316 MB / 483.9 MB, free: 2.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008942/0.3945, allocations: 3.718 MB / 487.6 MB, free: 14.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3945, allocations: 0 / 487.6 MB, free: 14.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3945, allocations: 0 / 487.6 MB, free: 14.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001101/0.3946, allocations: 0 / 487.6 MB, free: 14.9 MB / 398.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.006575/0.4011, allocations: 3.613 MB / 491.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.4012, allocations: 12.03 kB / 491.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001432/0.4013, allocations: 94.5 kB / 491.3 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005798/0.4019, allocations: 397.5 kB / 491.7 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.4061, allocations: 2.374 MB / 494.1 MB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.4062, allocations: 41 kB / 494.1 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.4063, allocations: 48 kB / 494.2 MB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.4079, allocations: 0.7577 MB / 494.9 MB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.4079, allocations: 0 / 494.9 MB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.35e-05/0.408, allocations: 20 kB / 494.9 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.408, allocations: 27.92 kB / 495 MB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.4099, allocations: 0.8592 MB / 495.8 MB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005659/0.4155, allocations: 2.914 MB / 498.8 MB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.4174, allocations: 0.7208 MB / 499.5 MB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.4189, allocations: 0.8751 MB / 0.4886 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02671/0.4456, allocations: 13.77 MB / 0.5021 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/0.4468, allocations: 0.5957 MB / 0.5026 GB, free: 3.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.487e-06/0.4469, allocations: 0 / 0.5026 GB, free: 3.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01233/0.4592, allocations: 4.521 MB / 0.5071 GB, free: 14.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/0.4593, allocations: 68.41 kB / 0.5071 GB, free: 14.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003758/0.463, allocations: 2.696 MB / 0.5098 GB, free: 11.79 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.4632, allocations: 49.64 kB / 0.5098 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.4645, allocations: 1.3 MB / 0.5111 GB, free: 10.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003901/0.4649, allocations: 349 kB / 0.5114 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000384/0.4652, allocations: 234.4 kB / 0.5116 GB, free: 9.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.4654, allocations: 349.9 kB / 0.512 GB, free: 9.504 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4667, allocations: 474 kB / 0.5124 GB, free: 9.043 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.4681, allocations: 0.6509 MB / 0.5131 GB, free: 8.328 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.4708, allocations: 1.13 MB / 0.5142 GB, free: 7.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4708, allocations: 0 / 0.5142 GB, free: 7.137 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004452/0.4752, allocations: 1.839 MB / 0.516 GB, free: 5.254 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.4753, allocations: 6.812 kB / 0.516 GB, free: 5.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/0.4755, allocations: 123.9 kB / 0.5161 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007424/0.4762, allocations: 260.5 kB / 0.5163 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008803/0.4771, allocations: 199.7 kB / 0.5165 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.4881, allocations: 13.23 MB / 0.5294 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.4896, allocations: 87.97 kB / 0.5295 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/0.4898, allocations: 56 kB / 0.5296 GB, free: 6.141 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.001021/0.4908, allocations: 433.5 kB / 0.53 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006881/0.4915, allocations: 385.6 kB / 0.5303 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/0.4967, allocations: 2.06 MB / 0.5324 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.4967, allocations: 8 kB / 0.5324 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4967, allocations: 4 kB / 0.5324 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.4967, allocations: 7.922 kB / 0.5324 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.4992, allocations: 1.511 MB / 0.5339 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001846/0.4994, allocations: 120 kB / 0.534 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/0.5001, allocations: 135.8 kB / 0.5341 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007105/0.5008, allocations: 264.3 kB / 0.5344 GB, free: 1.113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.5009, allocations: 43.98 kB / 0.5344 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2263/0.7272, allocations: 13.23 MB / 0.5473 GB, free: 91.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7272, allocations: 0 / 0.5473 GB, free: 91.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005851/0.733, allocations: 2.408 MB / 0.5497 GB, free: 91.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/0.7344, allocations: 440.1 kB / 0.5501 GB, free: 91.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000503/0.7349, allocations: 21.23 kB / 0.5501 GB, free: 91.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.7359, allocations: 79.05 kB / 0.5502 GB, free: 91.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000443/0.7363, allocations: 147.5 kB / 0.5503 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.7365, allocations: 51.38 kB / 0.5504 GB, free: 90.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003485/0.7399, allocations: 1.767 MB / 0.5521 GB, free: 90.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7399, allocations: 3.281 kB / 0.5521 GB, free: 90.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002856/0.7428, allocations: 0.6558 MB / 0.5527 GB, free: 90.29 MB / 446.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.006636/0.7494, allocations: 3.675 MB / 0.5563 GB, free: 88.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003868/0.7533, allocations: 2.45 MB / 0.5587 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.7533, allocations: 0 / 0.5587 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.7557, allocations: 1.904 MB / 0.5606 GB, free: 85.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.7582, allocations: 0.6157 MB / 0.5612 GB, free: 85.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02667/0.7849, allocations: 17.91 MB / 0.5787 GB, free: 68.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008375/0.7857, allocations: 1.662 MB / 0.5803 GB, free: 66.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001245/0.787, allocations: 398.6 kB / 0.5807 GB, free: 66.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.788, allocations: 1.194 MB / 0.5818 GB, free: 65.14 MB / 446.1 MB Notification: Performance of SimCode: time 1.403e-06/0.788, allocations: 0 / 0.5818 GB, free: 65.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1377/0.9258, allocations: 67.63 MB / 0.6479 GB, free: 13.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.3/19.22, allocations: 3.938 kB / 0.6479 GB, free: 13.95 MB / 462.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.756853993982077] 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.36199559411034 19.391540486 18.991202376 Calling exit ...