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.001658/0.001658, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002086/0.002086, allocations: 209.9 kB / 24.54 MB, free: 4.055 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.449/1.449, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.00197/0.00197, allocations: 60.77 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2914, allocations: 53.38 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01551/0.3069, allocations: 14.24 MB / 446.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02676/0.3337, allocations: 20.43 MB / 466.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.3363, allocations: 189.8 kB / 466.8 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003413/0.3397, allocations: 1.126 MB / 467.9 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008861/0.3486, allocations: 2.343 MB / 470.2 MB, free: 412 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005059/0.3536, allocations: 1.465 MB / 471.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.3645, allocations: 6.536 MB / 478.2 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007141/0.3652, allocations: 257 kB / 478.5 MB, free: 8.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001814/0.367, allocations: 1.136 MB / 479.6 MB, free: 6.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.3684, allocations: 1.083 MB / 480.7 MB, free: 5.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.3686, allocations: 76 kB / 480.8 MB, free: 5.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004483/0.3731, allocations: 1.479 MB / 482.3 MB, free: 4.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004115/0.3735, allocations: 333.7 kB / 482.6 MB, free: 3.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00156/0.3751, allocations: 1.316 MB / 483.9 MB, free: 2.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005713/0.3808, allocations: 3.71 MB / 487.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3808, allocations: 0 / 487.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3808, allocations: 0 / 487.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.703e-05/0.3809, allocations: 0 / 487.6 MB, free: 14.93 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.005808/0.3867, allocations: 3.61 MB / 491.2 MB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3867, allocations: 16.03 kB / 491.2 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.3869, allocations: 98.45 kB / 491.3 MB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000557/0.3874, allocations: 397.5 kB / 491.7 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004045/0.3915, allocations: 2.371 MB / 494.1 MB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.3915, allocations: 37 kB / 494.1 MB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.3917, allocations: 55.92 kB / 494.2 MB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.3932, allocations: 0.7616 MB / 494.9 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3932, allocations: 0 / 494.9 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.122e-05/0.3933, allocations: 20 kB / 495 MB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.3933, allocations: 23.98 kB / 495 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/0.3951, allocations: 0.8553 MB / 495.8 MB, free: 6.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005246/0.4004, allocations: 2.918 MB / 498.8 MB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.402, allocations: 0.713 MB / 499.5 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001612/0.4036, allocations: 0.8713 MB / 0.4886 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02607/0.4297, allocations: 13.76 MB / 0.5021 GB, free: 3.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.4309, allocations: 0.5996 MB / 0.5026 GB, free: 3.203 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.876e-06/0.4309, allocations: 0 / 0.5026 GB, free: 3.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01199/0.4429, allocations: 4.528 MB / 0.5071 GB, free: 14.61 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.443, allocations: 64.39 kB / 0.5071 GB, free: 14.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.4467, allocations: 2.7 MB / 0.5098 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001549/0.4469, allocations: 41.7 kB / 0.5098 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.4481, allocations: 1.304 MB / 0.5111 GB, free: 10.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003724/0.4485, allocations: 349 kB / 0.5114 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003683/0.4488, allocations: 238.4 kB / 0.5116 GB, free: 9.879 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.449, allocations: 345.9 kB / 0.512 GB, free: 9.535 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.4502, allocations: 478 kB / 0.5124 GB, free: 9.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.4516, allocations: 0.6431 MB / 0.513 GB, free: 8.363 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002537/0.4541, allocations: 1.137 MB / 0.5142 GB, free: 7.164 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4541, allocations: 4 kB / 0.5142 GB, free: 7.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004117/0.4583, allocations: 1.831 MB / 0.5159 GB, free: 5.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.4583, allocations: 8 kB / 0.516 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/0.4585, allocations: 128 kB / 0.5161 GB, free: 5.152 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007165/0.4592, allocations: 264.9 kB / 0.5163 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008534/0.46, allocations: 195.7 kB / 0.5165 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/0.4708, allocations: 13.23 MB / 0.5294 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.4725, allocations: 87.89 kB / 0.5295 GB, free: 6.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.4727, allocations: 56 kB / 0.5296 GB, free: 6.16 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.001059/0.4737, allocations: 421.7 kB / 0.53 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005447/0.4743, allocations: 393.5 kB / 0.5304 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/0.4791, allocations: 2.06 MB / 0.5324 GB, free: 3.254 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.4791, allocations: 12 kB / 0.5324 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.4791, allocations: 4 kB / 0.5324 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.4791, allocations: 3.984 kB / 0.5324 GB, free: 3.234 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.4813, allocations: 1.515 MB / 0.5339 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001951/0.4815, allocations: 112 kB / 0.534 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007035/0.4822, allocations: 135.8 kB / 0.5341 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000667/0.4829, allocations: 260.3 kB / 0.5343 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.455e-05/0.483, allocations: 51.91 kB / 0.5344 GB, free: 1.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2465/0.7295, allocations: 13.22 MB / 0.5473 GB, free: 91.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7295, allocations: 0 / 0.5473 GB, free: 91.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.7351, allocations: 2.413 MB / 0.5497 GB, free: 91.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/0.7365, allocations: 437.5 kB / 0.5501 GB, free: 91.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003598/0.7368, allocations: 21.05 kB / 0.5501 GB, free: 91.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009/0.7377, allocations: 75.25 kB / 0.5502 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004303/0.7382, allocations: 151.8 kB / 0.5503 GB, free: 91.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.566e-05/0.7383, allocations: 51.7 kB / 0.5504 GB, free: 91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002652/0.7409, allocations: 1.768 MB / 0.5521 GB, free: 90.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7409, allocations: 0 / 0.5521 GB, free: 90.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00222/0.7431, allocations: 0.6561 MB / 0.5527 GB, free: 90.32 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.006284/0.7494, allocations: 3.678 MB / 0.5563 GB, free: 88.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003684/0.7531, allocations: 2.452 MB / 0.5587 GB, free: 87.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.7531, allocations: 0 / 0.5587 GB, free: 87.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.7552, allocations: 1.898 MB / 0.5606 GB, free: 85.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.7577, allocations: 0.6161 MB / 0.5612 GB, free: 85.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02364/0.7814, allocations: 17.93 MB / 0.5787 GB, free: 68.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008651/0.7822, allocations: 1.654 MB / 0.5803 GB, free: 66.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.7835, allocations: 395.3 kB / 0.5807 GB, free: 66.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009924/0.7845, allocations: 1.194 MB / 0.5818 GB, free: 65.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/0.7845, allocations: 0 / 0.5818 GB, free: 65.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/0.9098, allocations: 67.63 MB / 0.6479 GB, free: 14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.12/19.03, allocations: 14.5 kB / 0.6479 GB, free: 13.98 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 & 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: 21.666393409948796] 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.166844938416034 19.194968035 18.808513821000002 Calling exit ...