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.001529/0.001529, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 59.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2506, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01428/0.265, allocations: 14.2 MB / 422.9 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02447/0.2895, allocations: 20.34 MB / 443.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.2916, allocations: 126.9 kB / 443.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002824/0.2944, allocations: 1.115 MB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00681/0.3013, allocations: 2.293 MB / 446.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004189/0.3055, allocations: 1.439 MB / 448.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.3156, allocations: 6.488 MB / 454.7 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007606/0.3164, allocations: 428.4 kB / 455.2 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.318, allocations: 1.077 MB / 456.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.3193, allocations: 1.079 MB / 457.3 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001904/0.3195, allocations: 76 kB / 457.4 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003931/0.3235, allocations: 1.479 MB / 458.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003545/0.3238, allocations: 325.7 kB / 459.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.3253, allocations: 1.324 MB / 460.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005625/0.3309, allocations: 3.71 MB / 464.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.3309, allocations: 3.984 kB / 464.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3309, allocations: 0 / 464.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.032e-05/0.331, allocations: 0 / 464.2 MB, free: 9.82 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.005338/0.3363, allocations: 3.681 MB / 467.9 MB, free: 6.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3364, allocations: 8.031 kB / 467.9 MB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001438/0.3365, allocations: 98.5 kB / 468 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004708/0.337, allocations: 393.5 kB / 468.4 MB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003719/0.3407, allocations: 2.567 MB / 471 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.076e-05/0.3408, allocations: 33 kB / 471 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.3409, allocations: 48 kB / 471 MB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3424, allocations: 0.7538 MB / 471.8 MB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3425, allocations: 3.938 kB / 471.8 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.91e-05/0.3425, allocations: 20 kB / 471.8 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.3426, allocations: 19.98 kB / 471.8 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3443, allocations: 0.8631 MB / 472.7 MB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004987/0.3493, allocations: 2.982 MB / 475.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.3511, allocations: 0.791 MB / 476.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.3526, allocations: 0.9527 MB / 477.4 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03296/0.3856, allocations: 30.69 MB / 0.4962 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.3868, allocations: 0.5957 MB / 0.4968 GB, free: 8.824 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.106e-06/0.3868, allocations: 0 / 0.4968 GB, free: 8.824 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01236/0.3992, allocations: 5.278 MB / 0.5019 GB, free: 3.297 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.3993, allocations: 68.41 kB / 0.502 GB, free: 3.219 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003544/0.4029, allocations: 2.696 MB / 0.5046 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.869e-05/0.403, allocations: 41.7 kB / 0.5047 GB, free: 472 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.4042, allocations: 1.311 MB / 0.506 GB, free: 15.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000333/0.4046, allocations: 349 kB / 0.5063 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003765/0.4049, allocations: 238.4 kB / 0.5065 GB, free: 14.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4051, allocations: 341.9 kB / 0.5068 GB, free: 14.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.4064, allocations: 482 kB / 0.5073 GB, free: 13.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4077, allocations: 0.647 MB / 0.5079 GB, free: 13.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.4103, allocations: 1.126 MB / 0.509 GB, free: 11.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4104, allocations: 0 / 0.509 GB, free: 11.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004335/0.4147, allocations: 2.001 MB / 0.511 GB, free: 9.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4147, allocations: 8 kB / 0.511 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/0.4149, allocations: 120 kB / 0.5111 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007268/0.4157, allocations: 264.6 kB / 0.5114 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009038/0.4166, allocations: 199.7 kB / 0.5116 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.4277, allocations: 14.25 MB / 0.5255 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.4292, allocations: 91.95 kB / 0.5256 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.4294, allocations: 60 kB / 0.5256 GB, free: 9.363 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.0009026/0.4303, allocations: 439.3 kB / 0.526 GB, free: 8.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005148/0.4308, allocations: 385.6 kB / 0.5264 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.4357, allocations: 2.215 MB / 0.5286 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4358, allocations: 8 kB / 0.5286 GB, free: 6.246 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.4358, allocations: 7.984 kB / 0.5286 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.4358, allocations: 7.984 kB / 0.5286 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.4378, allocations: 1.531 MB / 0.5301 GB, free: 4.648 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001628/0.438, allocations: 116 kB / 0.5302 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.4388, allocations: 139.8 kB / 0.5303 GB, free: 4.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000647/0.4394, allocations: 256.3 kB / 0.5306 GB, free: 4.117 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-05/0.4395, allocations: 47.98 kB / 0.5306 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1886/0.6282, allocations: 14.24 MB / 0.5445 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6282, allocations: 0.5625 kB / 0.5445 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005032/0.6333, allocations: 2.574 MB / 0.547 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008145/0.6341, allocations: 0.5005 MB / 0.5475 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.6344, allocations: 25.19 kB / 0.5475 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009255/0.6353, allocations: 81.94 kB / 0.5476 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/0.6356, allocations: 143.2 kB / 0.5478 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.564e-05/0.6357, allocations: 51.31 kB / 0.5478 GB, free: 118.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001831/0.6376, allocations: 1.769 MB / 0.5495 GB, free: 117.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6376, allocations: 0 / 0.5495 GB, free: 117.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001316/0.6389, allocations: 0.6587 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.005417/0.6443, allocations: 3.838 MB / 0.5539 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003243/0.6476, allocations: 2.526 MB / 0.5564 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6476, allocations: 0 / 0.5564 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.6496, allocations: 1.958 MB / 0.5583 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.002148/0.6517, allocations: 0.6259 MB / 0.5589 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/0.6731, allocations: 18.23 MB / 0.5767 GB, free: 93.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.6738, allocations: 1.658 MB / 0.5783 GB, free: 92.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.6749, allocations: 399.3 kB / 0.5787 GB, free: 91.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008653/0.6758, allocations: 1.194 MB / 0.5799 GB, free: 90.68 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6758, allocations: 0 / 0.5799 GB, free: 90.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1214/0.7972, allocations: 66.64 MB / 0.645 GB, free: 24.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.72/18.52, allocations: 0 / 0.645 GB, free: 24.17 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)