Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007517/0.0007521, allocations: 90.12 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008564/0.0008564, allocations: 183.9 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003985, allocations: 8.719 kB / 300.9 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 50.43 MB / 351.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01105/0.139, allocations: 12.56 MB / 363.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02342/0.1624, allocations: 18.54 MB / 382.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002088/0.1646, allocations: 67.44 kB / 382.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002995/0.1676, allocations: 0.8633 MB / 383.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007091/0.1747, allocations: 1.836 MB / 385.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004219/0.179, allocations: 1.112 MB / 386.3 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.1897, allocations: 6.019 MB / 392.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009936/0.1907, allocations: 399.4 kB / 392.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.1926, allocations: 0.9329 MB / 393.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.1939, allocations: 1.002 MB / 394.7 MB, free: 124 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.1941, allocations: 44 kB / 394.7 MB, free: 80 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004097/0.1982, allocations: 1.319 MB / 396 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004257/0.1987, allocations: 274 kB / 396.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.1999, allocations: 0.5936 MB / 396.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004133/0.204, allocations: 2.636 MB / 399.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.358e-06/0.2041, allocations: 0 / 399.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.2041, allocations: 4 kB / 399.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.935e-05/0.2042, allocations: 4 kB / 399.5 MB, free: 11.23 MB / 334.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.005107/0.2093, allocations: 3.163 MB / 402.7 MB, free: 8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.2094, allocations: 12.03 kB / 402.7 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001662/0.2095, allocations: 94.5 kB / 402.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004963/0.21, allocations: 379.4 kB / 403.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004559/0.2146, allocations: 2.376 MB / 405.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.2147, allocations: 40.98 kB / 405.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.2148, allocations: 47.91 kB / 405.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.2163, allocations: 0.7928 MB / 406.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.2163, allocations: 0 / 406.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.2164, allocations: 19.95 kB / 406.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.2164, allocations: 23.98 kB / 406.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.2181, allocations: 0.9139 MB / 407.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005402/0.2236, allocations: 3.002 MB / 410.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.2253, allocations: 0.8497 MB / 411.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.2267, allocations: 0.9916 MB / 412.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2083/0.4351, allocations: 30.09 MB / 442.3 MB, free: 54.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.4362, allocations: 0.6275 MB / 442.9 MB, free: 54.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.4363, allocations: 0 / 442.9 MB, free: 54.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01114/0.4474, allocations: 5.706 MB / 448.6 MB, free: 52.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.4475, allocations: 68.02 kB / 448.7 MB, free: 52.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/0.4505, allocations: 2.653 MB / 451.4 MB, free: 51.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.4507, allocations: 53.66 kB / 451.4 MB, free: 51.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008852/0.4516, allocations: 1.307 MB / 452.7 MB, free: 50.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.4518, allocations: 329 kB / 453 MB, free: 50.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.4519, allocations: 19.91 kB / 453.1 MB, free: 50.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.452, allocations: 345.8 kB / 453.4 MB, free: 49.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.4531, allocations: 0.5301 MB / 453.9 MB, free: 49.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.4542, allocations: 0.7043 MB / 454.6 MB, free: 49.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.4553, allocations: 0.5744 MB / 455.2 MB, free: 49.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4553, allocations: 7.422 kB / 455.2 MB, free: 49.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003597/0.4589, allocations: 2.087 MB / 457.3 MB, free: 47.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.459, allocations: 8 kB / 457.3 MB, free: 47.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/0.4591, allocations: 120 kB / 457.4 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005617/0.4597, allocations: 271.6 kB / 457.7 MB, free: 47.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007725/0.4605, allocations: 227.7 kB / 457.9 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005738/0.4662, allocations: 13.25 MB / 471.2 MB, free: 32.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.4676, allocations: 128 kB / 471.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.4677, allocations: 56 kB / 471.3 MB, free: 32.46 MB / 350.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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007477/0.4685, allocations: 423.4 kB / 471.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003568/0.4688, allocations: 363.6 kB / 472.1 MB, free: 31.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004583/0.4734, allocations: 2.354 MB / 474.5 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.4735, allocations: 8 kB / 474.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.4735, allocations: 4 kB / 474.5 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4735, allocations: 3.984 kB / 474.5 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.4751, allocations: 1.545 MB / 476 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001384/0.4753, allocations: 116 kB / 476.1 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006655/0.4759, allocations: 171.8 kB / 476.3 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005256/0.4765, allocations: 264.3 kB / 476.6 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.974e-05/0.4766, allocations: 39.98 kB / 476.6 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005902/0.4825, allocations: 13.24 MB / 489.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4825, allocations: 4.031 kB / 489.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/0.4874, allocations: 2.728 MB / 492.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009243/0.4884, allocations: 0.4887 MB / 493.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/0.4888, allocations: 20 kB / 493.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009333/0.4897, allocations: 111.9 kB / 493.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/0.4901, allocations: 144.8 kB / 493.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4902, allocations: 43.98 kB / 493.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002066/0.4923, allocations: 1.739 MB / 495.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4923, allocations: 0 / 495.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001695/0.494, allocations: 0.6522 MB / 495.8 MB, free: 6.434 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005693/0.4997, allocations: 3.969 MB / 499.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003477/0.5032, allocations: 2.642 MB / 0.4906 GB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.5032, allocations: 4.188 kB / 0.4906 GB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.5058, allocations: 2.014 MB / 0.4926 GB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.5083, allocations: 0.6056 MB / 0.4932 GB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04083/0.5491, allocations: 19.26 MB / 0.512 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.5504, allocations: 1.662 MB / 0.5136 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001702/0.5522, allocations: 387.3 kB / 0.514 GB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/0.5535, allocations: 1.191 MB / 0.5151 GB, free: 4.652 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5535, allocations: 4 kB / 0.5151 GB, free: 4.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09448/0.648, allocations: 61.68 MB / 0.5754 GB, free: 7.301 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/0.6482, allocations: 198 kB / 0.5756 GB, free: 7.062 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.039/4.687, allocations: 8.062 kB / 0.5756 GB, free: 7.055 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)