Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_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.00125/0.00125, allocations: 94.45 kB / 16.95 MB, free: 6.891 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.001896/0.001896, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.769/1.769, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005128, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1065, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01012/0.1167, allocations: 11.97 MB / 340.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.136, allocations: 17.62 MB / 358 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.138, allocations: 67.44 kB / 358.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002443/0.1404, allocations: 0.836 MB / 358.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005863/0.1463, allocations: 1.805 MB / 360.7 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003463/0.1498, allocations: 1.069 MB / 361.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009187/0.159, allocations: 5.887 MB / 367.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.1601, allocations: 411.2 kB / 368.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.1614, allocations: 0.8357 MB / 368.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000991/0.1624, allocations: 0.9707 MB / 369.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.1626, allocations: 44 kB / 369.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003521/0.1661, allocations: 1.066 MB / 371 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002743/0.1664, allocations: 274 kB / 371.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007341/0.1671, allocations: 0.6053 MB / 371.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002516/0.1697, allocations: 2.648 MB / 374.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1697, allocations: 3.938 kB / 374.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1697, allocations: 4 kB / 374.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.251e-05/0.1697, allocations: 0 / 374.5 MB, free: 5.703 MB / 318.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.004407/0.1742, allocations: 3.179 MB / 377.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.1742, allocations: 8.031 kB / 377.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/0.1744, allocations: 94.5 kB / 377.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003865/0.1748, allocations: 379.4 kB / 378.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1968/0.3716, allocations: 2.402 MB / 380.6 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.476e-05/0.3717, allocations: 33.72 kB / 380.6 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.3719, allocations: 53.45 kB / 380.7 MB, free: 52.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.3734, allocations: 0.785 MB / 381.5 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3735, allocations: 0.75 kB / 381.5 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.332e-05/0.3736, allocations: 22.55 kB / 381.5 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/0.3736, allocations: 20.94 kB / 381.5 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.3757, allocations: 0.9252 MB / 382.4 MB, free: 51.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005625/0.3813, allocations: 3.009 MB / 385.4 MB, free: 50.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3831, allocations: 0.8563 MB / 386.3 MB, free: 50.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.3847, allocations: 0.9848 MB / 387.3 MB, free: 50.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02508/0.4098, allocations: 30.18 MB / 417.4 MB, free: 22.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.4109, allocations: 0.6265 MB / 418.1 MB, free: 22.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.016e-06/0.4109, allocations: 0 / 418.1 MB, free: 22.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01032/0.4212, allocations: 5.709 MB / 423.8 MB, free: 16.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.4213, allocations: 72.33 kB / 423.9 MB, free: 16.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002622/0.4239, allocations: 2.678 MB / 426.5 MB, free: 13.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.046e-05/0.424, allocations: 41.7 kB / 426.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008376/0.4248, allocations: 1.304 MB / 427.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.4251, allocations: 335.8 kB / 428.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.4251, allocations: 20 kB / 428.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.542e-05/0.4252, allocations: 341.9 kB / 428.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.4263, allocations: 0.5332 MB / 429.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.4274, allocations: 0.7017 MB / 429.8 MB, free: 10.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.4284, allocations: 0.574 MB / 430.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4284, allocations: 0 / 430.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003358/0.4318, allocations: 2.103 MB / 432.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.4318, allocations: 8 kB / 432.5 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001496/0.432, allocations: 124 kB / 432.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000575/0.4326, allocations: 262.9 kB / 432.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000784/0.4334, allocations: 227.7 kB / 433.1 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008042/0.4414, allocations: 13.25 MB / 446.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.4433, allocations: 124 kB / 446.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.4434, allocations: 56 kB / 446.5 MB, free: 8.145 MB / 334.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.00106/0.4445, allocations: 437.4 kB / 446.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004235/0.4449, allocations: 371.5 kB / 447.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005126/0.4501, allocations: 2.348 MB / 449.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.4501, allocations: 8 kB / 449.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4501, allocations: 7.938 kB / 449.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.4501, allocations: 3.984 kB / 449.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.4524, allocations: 1.546 MB / 451.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001657/0.4525, allocations: 116 kB / 451.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006945/0.4532, allocations: 167.8 kB / 451.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006248/0.4539, allocations: 264.3 kB / 451.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.383e-05/0.454, allocations: 51.98 kB / 451.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009969/0.464, allocations: 13.24 MB / 465 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.464, allocations: 0 / 465 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/0.47, allocations: 2.736 MB / 467.8 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/0.4715, allocations: 496.5 kB / 468.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003234/0.4718, allocations: 16 kB / 468.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009039/0.4727, allocations: 115.8 kB / 468.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003642/0.4731, allocations: 148.7 kB / 468.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.4732, allocations: 47.98 kB / 468.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.4758, allocations: 1.751 MB / 470.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4758, allocations: 0 / 470.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002084/0.4779, allocations: 0.6587 MB / 471 MB, free: 14.11 MB / 366.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.006963/0.4849, allocations: 3.973 MB / 475 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004209/0.4891, allocations: 2.639 MB / 477.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4891, allocations: 0 / 477.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.4917, allocations: 2.014 MB / 479.6 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.4939, allocations: 0.5002 MB / 480.1 MB, free: 4.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04465/0.5385, allocations: 19.42 MB / 499.5 MB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.5402, allocations: 1.662 MB / 0.4894 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.542, allocations: 395.4 kB / 0.4898 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/0.5433, allocations: 1.198 MB / 0.491 GB, free: 12.3 MB / 398.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5433, allocations: 0 / 0.491 GB, free: 12.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3235/0.8669, allocations: 61.97 MB / 0.5515 GB, free: 140.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.8672, allocations: 197.8 kB / 0.5517 GB, free: 140.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.702/5.569, allocations: 0 / 0.5517 GB, free: 140.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) Environment - environmentSimulation: