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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001484/0.001484, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 59.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2721, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01249/0.2846, allocations: 14.2 MB / 422.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02158/0.3063, allocations: 20.34 MB / 443.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002456/0.3088, allocations: 122.9 kB / 443.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.3119, allocations: 1.131 MB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007732/0.3196, allocations: 2.313 MB / 446.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004639/0.3243, allocations: 1.447 MB / 448.3 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009743/0.3341, allocations: 6.484 MB / 454.8 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007787/0.3349, allocations: 436.4 kB / 455.2 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001758/0.3367, allocations: 1.1 MB / 456.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.3378, allocations: 1.087 MB / 457.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.338, allocations: 72 kB / 457.4 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.3418, allocations: 1.479 MB / 458.9 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.3422, allocations: 329.7 kB / 459.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.3435, allocations: 1.32 MB / 460.6 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005324/0.3488, allocations: 3.706 MB / 464.3 MB, free: 9.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3488, allocations: 4 kB / 464.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3489, allocations: 0 / 464.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.3489, allocations: 0 / 464.3 MB, free: 9.766 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.005147/0.354, allocations: 3.689 MB / 468 MB, free: 6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3541, allocations: 8.031 kB / 468 MB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.3542, allocations: 98.5 kB / 468.1 MB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004073/0.3547, allocations: 397.5 kB / 468.5 MB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.3581, allocations: 2.555 MB / 471 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.3581, allocations: 37 kB / 471.1 MB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.3583, allocations: 51.98 kB / 471.1 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.3597, allocations: 0.7538 MB / 471.9 MB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3597, allocations: 0 / 471.9 MB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.539e-05/0.3598, allocations: 23.94 kB / 471.9 MB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.3599, allocations: 19.98 kB / 471.9 MB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3616, allocations: 0.8553 MB / 472.8 MB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004785/0.3664, allocations: 2.978 MB / 475.7 MB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.3681, allocations: 0.7948 MB / 476.5 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.3695, allocations: 0.9565 MB / 477.5 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02962/0.3992, allocations: 30.69 MB / 0.4963 GB, free: 9.371 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.4004, allocations: 0.5957 MB / 0.4968 GB, free: 8.766 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.076e-06/0.4004, allocations: 0 / 0.4968 GB, free: 8.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01197/0.4124, allocations: 5.274 MB / 0.502 GB, free: 3.242 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.4124, allocations: 76.38 kB / 0.5021 GB, free: 3.156 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003059/0.4155, allocations: 2.696 MB / 0.5047 GB, free: 456 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.729e-05/0.4156, allocations: 41.7 kB / 0.5047 GB, free: 408 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4167, allocations: 1.304 MB / 0.506 GB, free: 15.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000306/0.4171, allocations: 356.9 kB / 0.5064 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003546/0.4174, allocations: 234.4 kB / 0.5066 GB, free: 14.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4175, allocations: 345.9 kB / 0.5069 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.4188, allocations: 474 kB / 0.5074 GB, free: 13.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.4202, allocations: 0.647 MB / 0.508 GB, free: 12.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.4228, allocations: 1.129 MB / 0.5091 GB, free: 11.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.4228, allocations: 0 / 0.5091 GB, free: 11.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004108/0.4269, allocations: 1.993 MB / 0.511 GB, free: 9.719 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.4269, allocations: 8 kB / 0.511 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001664/0.4271, allocations: 124 kB / 0.5112 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007062/0.4278, allocations: 268.8 kB / 0.5114 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008761/0.4287, allocations: 195.7 kB / 0.5116 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009194/0.4379, allocations: 14.25 MB / 0.5255 GB, free: 9.457 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.4395, allocations: 91.95 kB / 0.5256 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4397, allocations: 56 kB / 0.5257 GB, free: 9.312 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.000842/0.4405, allocations: 437.4 kB / 0.5261 GB, free: 8.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/0.4409, allocations: 389.6 kB / 0.5265 GB, free: 8.492 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004687/0.4456, allocations: 2.218 MB / 0.5286 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.4457, allocations: 8 kB / 0.5286 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.4457, allocations: 4 kB / 0.5286 GB, free: 6.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.4457, allocations: 3.984 kB / 0.5286 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.4474, allocations: 1.539 MB / 0.5301 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001486/0.4476, allocations: 116 kB / 0.5303 GB, free: 4.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4483, allocations: 135.8 kB / 0.5304 GB, free: 4.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006125/0.4489, allocations: 268.3 kB / 0.5306 GB, free: 4.047 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-05/0.449, allocations: 39.98 kB / 0.5307 GB, free: 4.008 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2012/0.6502, allocations: 14.24 MB / 0.5446 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6502, allocations: 3.469 kB / 0.5446 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005143/0.6554, allocations: 2.567 MB / 0.5471 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008839/0.6563, allocations: 0.5045 MB / 0.5476 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003105/0.6566, allocations: 21.14 kB / 0.5476 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000975/0.6576, allocations: 87.73 kB / 0.5477 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/0.6579, allocations: 133.3 kB / 0.5478 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.39e-05/0.658, allocations: 50.91 kB / 0.5479 GB, free: 118.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001885/0.6599, allocations: 1.772 MB / 0.5496 GB, free: 117.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6599, allocations: 0 / 0.5496 GB, free: 117.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001404/0.6613, allocations: 0.6567 MB / 0.5502 GB, free: 117.7 MB / 462.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.005726/0.667, allocations: 3.838 MB / 0.554 GB, free: 116 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003409/0.6704, allocations: 2.522 MB / 0.5564 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6705, allocations: 0 / 0.5564 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.6725, allocations: 1.959 MB / 0.5584 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002346/0.6749, allocations: 0.6296 MB / 0.559 GB, free: 112.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/0.6969, allocations: 18.24 MB / 0.5768 GB, free: 93.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007093/0.6977, allocations: 1.65 MB / 0.5784 GB, free: 92.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001112/0.6988, allocations: 403.3 kB / 0.5788 GB, free: 91.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009491/0.6998, allocations: 1.198 MB / 0.58 GB, free: 90.69 MB / 462.1 MB Notification: Performance of SimCode: time 3.016e-06/0.6998, allocations: 0 / 0.58 GB, free: 90.69 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/0.8063, allocations: 66.63 MB / 0.645 GB, free: 24.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.76/17.57, allocations: 4.062 kB / 0.645 GB, free: 24.19 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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.002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)