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.001323/0.001323, allocations: 114.9 kB / 18.45 MB, free: 4.641 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.001395/0.001394, allocations: 206.5 kB / 21.41 MB, free: 1.684 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.501/1.501, allocations: 227.7 MB / 251.9 MB, free: 15.86 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.001958/0.001959, allocations: 71.83 kB / 365.2 MB, free: 212 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1088, allocations: 50.55 MB / 415.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01502/0.1239, allocations: 14.19 MB / 429.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2686/0.3925, allocations: 20.32 MB / 450.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00267/0.3952, allocations: 124.7 kB / 450.4 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003729/0.399, allocations: 1.114 MB / 451.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.4093, allocations: 2.295 MB / 453.8 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006613/0.416, allocations: 1.442 MB / 455.2 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.4286, allocations: 6.491 MB / 461.7 MB, free: 3.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/0.4298, allocations: 436.5 kB / 462.2 MB, free: 3.551 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00264/0.4325, allocations: 1.065 MB / 463.2 MB, free: 3.262 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.4344, allocations: 1.085 MB / 464.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.4347, allocations: 75.62 kB / 464.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005257/0.44, allocations: 1.476 MB / 465.9 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005184/0.4405, allocations: 322.5 kB / 466.2 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002166/0.4427, allocations: 1.319 MB / 467.5 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007865/0.4506, allocations: 3.714 MB / 471.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4506, allocations: 5.188 kB / 471.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4506, allocations: 0 / 471.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.7e-05/0.4507, allocations: 0 / 471.2 MB, free: 1.32 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.007208/0.458, allocations: 3.683 MB / 474.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.458, allocations: 11.69 kB / 474.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001445/0.4582, allocations: 97.3 kB / 475 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008353/0.459, allocations: 401.9 kB / 475.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004575/0.4636, allocations: 2.548 MB / 477.9 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.4637, allocations: 41.19 kB / 478 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.4638, allocations: 55.52 kB / 478 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.4654, allocations: 0.7624 MB / 478.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.4655, allocations: 0 / 478.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.4656, allocations: 17.53 kB / 478.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.954e-05/0.4656, allocations: 27.45 kB / 478.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.4675, allocations: 0.8512 MB / 479.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006593/0.4741, allocations: 2.968 MB / 482.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.476, allocations: 0.7981 MB / 483.5 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.4775, allocations: 0.9544 MB / 484.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03786/0.5154, allocations: 30.69 MB / 0.503 GB, free: 9.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.5168, allocations: 0.5919 MB / 0.5036 GB, free: 9.035 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.847e-06/0.5168, allocations: 0 / 0.5036 GB, free: 9.035 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01465/0.5315, allocations: 5.292 MB / 0.5088 GB, free: 3.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.5316, allocations: 68.39 kB / 0.5088 GB, free: 3.418 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.5361, allocations: 2.692 MB / 0.5115 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002376/0.5363, allocations: 48.88 kB / 0.5115 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.5379, allocations: 1.326 MB / 0.5128 GB, free: 15.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.5384, allocations: 352.1 kB / 0.5132 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004326/0.5389, allocations: 230.5 kB / 0.5134 GB, free: 14.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.5391, allocations: 345.9 kB / 0.5137 GB, free: 14.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.5404, allocations: 474 kB / 0.5142 GB, free: 14.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.542, allocations: 0.647 MB / 0.5148 GB, free: 13.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/0.5447, allocations: 1.137 MB / 0.5159 GB, free: 12.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.5448, allocations: 4 kB / 0.5159 GB, free: 12.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004722/0.5495, allocations: 1.989 MB / 0.5178 GB, free: 10.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.5496, allocations: 4.625 kB / 0.5178 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001947/0.5498, allocations: 124 kB / 0.518 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007856/0.5506, allocations: 265.3 kB / 0.5182 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009244/0.5515, allocations: 199.7 kB / 0.5184 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.5633, allocations: 14.24 MB / 0.5323 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002228/0.5656, allocations: 95.89 kB / 0.5324 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/0.5658, allocations: 63.94 kB / 0.5325 GB, free: 9.664 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.001075/0.5669, allocations: 414.2 kB / 0.5329 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006631/0.5676, allocations: 389.6 kB / 0.5332 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005356/0.573, allocations: 2.225 MB / 0.5354 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.573, allocations: 12 kB / 0.5354 GB, free: 6.551 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.573, allocations: 5.188 kB / 0.5354 GB, free: 6.547 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.573, allocations: 3.984 kB / 0.5354 GB, free: 6.543 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002815/0.5759, allocations: 1.541 MB / 0.5369 GB, free: 4.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001651/0.576, allocations: 116 kB / 0.537 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.5768, allocations: 135.8 kB / 0.5372 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007182/0.5775, allocations: 260.3 kB / 0.5374 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.5776, allocations: 47.92 kB / 0.5375 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.5895, allocations: 14.25 MB / 0.5514 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5895, allocations: 0 / 0.5514 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006361/0.5959, allocations: 2.565 MB / 0.5539 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/0.5975, allocations: 0.5063 MB / 0.5544 GB, free: 1.562 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004165/0.598, allocations: 16 kB / 0.5544 GB, free: 1.547 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.599, allocations: 79.89 kB / 0.5545 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004216/0.5994, allocations: 144.8 kB / 0.5546 GB, free: 1.324 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.5995, allocations: 51.97 kB / 0.5547 GB, free: 1.273 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003064/0.6026, allocations: 1.77 MB / 0.5564 GB, free: 15.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6026, allocations: 0 / 0.5564 GB, free: 15.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002503/0.6051, allocations: 0.6557 MB / 0.557 GB, free: 14.84 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.007711/0.6129, allocations: 3.839 MB / 0.5608 GB, free: 11.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00492/0.6178, allocations: 2.526 MB / 0.5633 GB, free: 8.371 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6179, allocations: 0 / 0.5633 GB, free: 8.371 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/0.6208, allocations: 1.95 MB / 0.5652 GB, free: 6.273 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003326/0.6242, allocations: 0.6259 MB / 0.5658 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03484/0.659, allocations: 18.24 MB / 0.5836 GB, free: 2.973 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.6605, allocations: 1.658 MB / 0.5852 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00141/0.662, allocations: 399.3 kB / 0.5856 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/0.6636, allocations: 1.206 MB / 0.5868 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.6636, allocations: 4 kB / 0.5868 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4172/1.081, allocations: 66.67 MB / 0.6519 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.12/19.2, allocations: 4.594 kB / 0.6519 GB, free: 184.5 MB / 0.5294 GB " [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.84408640000038] 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.32577880390454 19.34173313 18.887962933 Calling exit ...