Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002434/0.002439, allocations: 183 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 85.56 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003866, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3316, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01358/0.3452, allocations: 10.88 MB / 385.5 MB, free: 36.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02621/0.3715, allocations: 16.68 MB / 402.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.3747, allocations: 67.5 kB / 402.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004094/0.3788, allocations: 0.8669 MB / 403.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009113/0.388, allocations: 2.056 MB / 405.2 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005356/0.3934, allocations: 1.153 MB / 406.3 MB, free: 17.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01458/0.408, allocations: 6.013 MB / 412.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009311/0.409, allocations: 407.3 kB / 412.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.4105, allocations: 0.8046 MB / 413.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001839/0.4124, allocations: 0.9669 MB / 414.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004424/0.4129, allocations: 44 kB / 414.6 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005575/0.4185, allocations: 1.21 MB / 415.8 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005809/0.4191, allocations: 278 kB / 416 MB, free: 7.305 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009827/0.4201, allocations: 0.6014 MB / 416.6 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005309/0.4255, allocations: 2.552 MB / 419.2 MB, free: 4.137 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4255, allocations: 0 / 419.2 MB, free: 4.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.4255, allocations: 0 / 419.2 MB, free: 4.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001333/0.4257, allocations: 0 / 419.2 MB, free: 4.137 MB / 298.7 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.007148/0.4328, allocations: 3.174 MB / 422.4 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.4329, allocations: 11.97 kB / 422.4 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000301/0.4332, allocations: 98.52 kB / 422.5 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006856/0.4339, allocations: 383.4 kB / 422.8 MB, free: 404 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006857/0.4408, allocations: 2.396 MB / 425.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.4409, allocations: 33 kB / 425.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002344/0.4412, allocations: 48 kB / 425.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/0.4439, allocations: 0.7889 MB / 426.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.4439, allocations: 0 / 426.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.4441, allocations: 20 kB / 426.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.4441, allocations: 23.98 kB / 426.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003362/0.4475, allocations: 0.91 MB / 427.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008867/0.4564, allocations: 3.001 MB / 430.1 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003343/0.4598, allocations: 0.8505 MB / 430.9 MB, free: 8.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05232/0.5122, allocations: 30.33 MB / 461.2 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0022/0.5144, allocations: 0.6153 MB / 461.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 5e-06/0.5145, allocations: 0 / 461.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.0241/0.5386, allocations: 6.025 MB / 467.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.5387, allocations: 72.39 kB / 468 MB, free: 14.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005693/0.5444, allocations: 2.674 MB / 470.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002413/0.5447, allocations: 45.7 kB / 470.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/0.5463, allocations: 1.051 MB / 471.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006177/0.547, allocations: 335.2 kB / 472 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.5471, allocations: 20 kB / 472.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.5473, allocations: 350.8 kB / 472.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002445/0.5497, allocations: 0.5254 MB / 472.9 MB, free: 9.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002727/0.5525, allocations: 0.7056 MB / 473.6 MB, free: 8.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.5552, allocations: 0.573 MB / 474.2 MB, free: 8.312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.5552, allocations: 7.953 kB / 474.2 MB, free: 8.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.009773/0.565, allocations: 1.796 MB / 476 MB, free: 6.434 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.495e-05/0.5651, allocations: 8 kB / 476 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000487/0.5656, allocations: 120 kB / 476.1 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.5676, allocations: 264.4 kB / 476.4 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/0.5701, allocations: 235.6 kB / 476.6 MB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/0.5984, allocations: 13.31 MB / 489.9 MB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/0.604, allocations: 131.9 kB / 490.1 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005792/0.6046, allocations: 56 kB / 490.1 MB, free: 6.969 MB / 378.7 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.003555/0.6082, allocations: 437.4 kB / 490.6 MB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001741/0.61, allocations: 371.6 kB / 490.9 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/0.6266, allocations: 2.367 MB / 493.3 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.6267, allocations: 8 kB / 493.3 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.6267, allocations: 4 kB / 493.3 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.6268, allocations: 7.969 kB / 493.3 MB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.6302, allocations: 1.555 MB / 494.9 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003217/0.6306, allocations: 116 kB / 495 MB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001953/0.6326, allocations: 167.8 kB / 495.1 MB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/0.6344, allocations: 256.3 kB / 495.4 MB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003909/0.6349, allocations: 43.98 kB / 495.4 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02049/0.6554, allocations: 13.31 MB / 0.4968 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.6555, allocations: 4.031 kB / 0.4968 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/0.6692, allocations: 2.731 MB / 0.4995 GB, free: 16 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3114/0.9806, allocations: 492.4 kB / 0.5 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007469/0.9814, allocations: 19.25 kB / 0.5 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/0.9837, allocations: 113.4 kB / 0.5001 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006739/0.9844, allocations: 143.6 kB / 0.5002 GB, free: 126 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.9846, allocations: 48.61 kB / 0.5003 GB, free: 126 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004618/0.9892, allocations: 1.752 MB / 0.502 GB, free: 125.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.9893, allocations: 0 / 0.502 GB, free: 125.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003268/0.9926, allocations: 0.6511 MB / 0.5026 GB, free: 125.8 MB / 394.7 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.01676/1.009, allocations: 3.978 MB / 0.5065 GB, free: 124.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008926/1.018, allocations: 2.633 MB / 0.5091 GB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.018, allocations: 2.375 kB / 0.5091 GB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004463/1.023, allocations: 2.022 MB / 0.511 GB, free: 121.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/1.026, allocations: 495.3 kB / 0.5115 GB, free: 121.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05999/1.086, allocations: 22.25 MB / 0.5332 GB, free: 100 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/1.088, allocations: 1.724 MB / 0.5349 GB, free: 98.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/1.09, allocations: 1.206 MB / 0.5361 GB, free: 97.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/1.09, allocations: 0 / 0.5361 GB, free: 97.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.801/5.891, allocations: 156.6 MB / 0.689 GB, free: 123.3 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)