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.001328/0.001328, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001596/0.001596, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.511/1.511, allocations: 230.5 MB / 254.8 MB, free: 15.25 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.001954/0.001954, allocations: 75.83 kB / 373.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1095, allocations: 53.32 MB / 427 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01539/0.1249, allocations: 14.24 MB / 441.2 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2789/0.4037, allocations: 20.4 MB / 461.6 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003489/0.4072, allocations: 192.6 kB / 461.8 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004495/0.4117, allocations: 1.128 MB / 462.9 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.4238, allocations: 2.314 MB / 465.3 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008129/0.4319, allocations: 1.447 MB / 466.7 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0139/0.4458, allocations: 6.511 MB / 473.2 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009514/0.4467, allocations: 251 kB / 473.5 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.4501, allocations: 1.139 MB / 474.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002359/0.4524, allocations: 1.077 MB / 475.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000266/0.4527, allocations: 74.47 kB / 475.8 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007444/0.4601, allocations: 1.479 MB / 477.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006963/0.4608, allocations: 320.1 kB / 477.5 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002533/0.4634, allocations: 1.33 MB / 478.9 MB, free: 204 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.4736, allocations: 3.71 MB / 482.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.4736, allocations: 1.312 kB / 482.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4736, allocations: 0 / 482.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001314/0.4737, allocations: 0 / 482.6 MB, free: 14.37 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.008848/0.4826, allocations: 3.694 MB / 486.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.4826, allocations: 8.75 kB / 486.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001737/0.4828, allocations: 101 kB / 486.4 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.4838, allocations: 396.1 kB / 486.8 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005199/0.489, allocations: 2.553 MB / 489.3 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/0.4891, allocations: 36.58 kB / 489.4 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.4892, allocations: 52.23 kB / 489.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.491, allocations: 0.7593 MB / 490.2 MB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.491, allocations: 1.312 kB / 490.2 MB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.401e-05/0.4911, allocations: 19.22 kB / 490.2 MB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/0.4912, allocations: 26.61 kB / 490.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.4931, allocations: 0.8513 MB / 491.1 MB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00755/0.5007, allocations: 2.971 MB / 494 MB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.5027, allocations: 0.7261 MB / 494.8 MB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.5041, allocations: 0.8566 MB / 495.6 MB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03656/0.5407, allocations: 30.7 MB / 0.514 GB, free: 3.145 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001355/0.542, allocations: 0.5919 MB / 0.5146 GB, free: 2.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.875e-06/0.542, allocations: 0 / 0.5146 GB, free: 2.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01533/0.5574, allocations: 5.275 MB / 0.5197 GB, free: 13.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.5575, allocations: 72.41 kB / 0.5198 GB, free: 12.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004305/0.5618, allocations: 2.692 MB / 0.5224 GB, free: 10.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.562, allocations: 41.7 kB / 0.5225 GB, free: 10.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0014/0.5634, allocations: 1.308 MB / 0.5237 GB, free: 8.879 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004714/0.5639, allocations: 353 kB / 0.5241 GB, free: 8.531 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004336/0.5643, allocations: 234.5 kB / 0.5243 GB, free: 8.293 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.5645, allocations: 345.9 kB / 0.5246 GB, free: 7.949 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.5658, allocations: 474 kB / 0.5251 GB, free: 7.484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.5672, allocations: 0.6534 MB / 0.5257 GB, free: 6.773 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.57, allocations: 1.13 MB / 0.5268 GB, free: 5.578 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.57, allocations: 0.5625 kB / 0.5268 GB, free: 5.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004826/0.5749, allocations: 1.993 MB / 0.5288 GB, free: 3.512 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.5749, allocations: 8 kB / 0.5288 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.575, allocations: 116 kB / 0.5289 GB, free: 3.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007741/0.5758, allocations: 268.7 kB / 0.5291 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009145/0.5767, allocations: 195.7 kB / 0.5293 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/0.5891, allocations: 14.25 MB / 0.5432 GB, free: 3.277 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/0.5914, allocations: 95.95 kB / 0.5433 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/0.5917, allocations: 56 kB / 0.5434 GB, free: 3.129 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.001172/0.5928, allocations: 417.6 kB / 0.5438 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008721/0.5937, allocations: 397.5 kB / 0.5442 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005599/0.5993, allocations: 2.203 MB / 0.5463 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.5993, allocations: 8 kB / 0.5463 GB, free: 32 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.5993, allocations: 4 kB / 0.5463 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.5994, allocations: 3.984 kB / 0.5463 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.6027, allocations: 1.547 MB / 0.5478 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001805/0.6029, allocations: 113.7 kB / 0.5479 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007888/0.6037, allocations: 139.8 kB / 0.5481 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007205/0.6044, allocations: 268.3 kB / 0.5483 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.6045, allocations: 39.98 kB / 0.5484 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01207/0.6166, allocations: 14.26 MB / 0.5623 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6166, allocations: 3.938 kB / 0.5623 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006454/0.623, allocations: 2.553 MB / 0.5648 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/0.6247, allocations: 0.4985 MB / 0.5653 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006171/0.6253, allocations: 20 kB / 0.5653 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.6265, allocations: 83.89 kB / 0.5654 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004178/0.6269, allocations: 144.8 kB / 0.5655 GB, free: 10.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.627, allocations: 43.98 kB / 0.5656 GB, free: 10.74 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002963/0.63, allocations: 1.774 MB / 0.5673 GB, free: 8.961 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.63, allocations: 0 / 0.5673 GB, free: 8.961 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002873/0.6329, allocations: 0.6557 MB / 0.5679 GB, free: 8.305 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.008339/0.6412, allocations: 3.834 MB / 0.5717 GB, free: 4.371 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00483/0.6461, allocations: 2.448 MB / 0.5741 GB, free: 1.766 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6461, allocations: 4.188 kB / 0.5741 GB, free: 1.762 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002989/0.649, allocations: 1.909 MB / 0.5759 GB, free: 15.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003362/0.6524, allocations: 0.6156 MB / 0.5765 GB, free: 15.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03808/0.6905, allocations: 18.21 MB / 0.5943 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/0.6925, allocations: 1.666 MB / 0.5959 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001547/0.694, allocations: 391.4 kB / 0.5963 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/0.6958, allocations: 1.194 MB / 0.5975 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of SimCode: time 1.654e-06/0.6958, allocations: 0 / 0.5975 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4209/1.117, allocations: 66.92 MB / 0.6628 GB, free: 181.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.83/19.94, allocations: 5 kB / 0.6628 GB, free: 181.1 MB / 0.5294 GB " [Timeout remaining time 640] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997606 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: 22.695421901065856] 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'] 20.075424083974212 20.08749176 19.611055378 Calling exit ...