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.001086/0.001086, allocations: 94.33 kB / 16.3 MB, free: 5.996 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.001127/0.001127, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.443/1.443, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002656, allocations: 5.094 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1074, allocations: 50.41 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01165/0.1191, allocations: 11.39 MB / 362.6 MB, free: 200 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0203/0.1395, allocations: 17.5 MB / 380.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001891/0.1414, allocations: 67.44 kB / 380.2 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.1442, allocations: 0.8904 MB / 381.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007642/0.1519, allocations: 2.068 MB / 383.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004441/0.1564, allocations: 1.192 MB / 384.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01049/0.1669, allocations: 6.075 MB / 390.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007616/0.1677, allocations: 403.4 kB / 390.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.1691, allocations: 0.9254 MB / 391.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.1702, allocations: 0.9904 MB / 392.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.1704, allocations: 44 kB / 392.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.1744, allocations: 1.436 MB / 394.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000311/0.1748, allocations: 266 kB / 394.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006945/0.1755, allocations: 0.5976 MB / 395 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002768/0.1782, allocations: 2.539 MB / 397.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1782, allocations: 0 / 397.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1783, allocations: 0 / 397.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.025e-05/0.1783, allocations: 0 / 397.6 MB, free: 13.09 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.004929/0.1832, allocations: 3.143 MB / 400.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1833, allocations: 8.031 kB / 400.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.1834, allocations: 102.5 kB / 400.8 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003634/0.1838, allocations: 383.4 kB / 401.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003686/0.1875, allocations: 2.364 MB / 403.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.1876, allocations: 33 kB / 403.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1877, allocations: 59.83 kB / 403.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.1891, allocations: 0.785 MB / 404.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1891, allocations: 0 / 404.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.346e-05/0.1892, allocations: 23.94 kB / 404.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.1892, allocations: 23.92 kB / 404.5 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.191, allocations: 0.9178 MB / 405.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004737/0.1957, allocations: 2.982 MB / 408.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.1975, allocations: 0.8497 MB / 409.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2101/0.4076, allocations: 30.25 MB / 439.5 MB, free: 56.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.4089, allocations: 0.6256 MB / 440.1 MB, free: 56.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.467e-06/0.4089, allocations: 0 / 440.1 MB, free: 56.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01213/0.421, allocations: 6.009 MB / 446.1 MB, free: 53.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.4211, allocations: 72.84 kB / 446.2 MB, free: 53.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003056/0.4242, allocations: 2.655 MB / 448.9 MB, free: 52.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.4243, allocations: 46.02 kB / 448.9 MB, free: 52.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000881/0.4252, allocations: 1.305 MB / 450.2 MB, free: 52.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.4255, allocations: 334.9 kB / 450.5 MB, free: 51.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.4255, allocations: 19.94 kB / 450.6 MB, free: 51.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.4256, allocations: 341.8 kB / 450.9 MB, free: 51.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.4268, allocations: 0.5254 MB / 451.4 MB, free: 51.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.4281, allocations: 0.7094 MB / 452.1 MB, free: 50.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.4293, allocations: 0.5766 MB / 452.7 MB, free: 50.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.4293, allocations: 0 / 452.7 MB, free: 50.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003777/0.4331, allocations: 2.092 MB / 454.8 MB, free: 49.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.4332, allocations: 7.406 kB / 454.8 MB, free: 49.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.4333, allocations: 116.9 kB / 454.9 MB, free: 49.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005981/0.4339, allocations: 269.7 kB / 455.2 MB, free: 49.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007893/0.4347, allocations: 224.2 kB / 455.4 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005803/0.4405, allocations: 13.32 MB / 468.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.442, allocations: 127.9 kB / 468.8 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4422, allocations: 56 kB / 468.9 MB, free: 34.2 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.0007386/0.4429, allocations: 429.5 kB / 469.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003259/0.4432, allocations: 367.6 kB / 469.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004618/0.4479, allocations: 2.363 MB / 472 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4479, allocations: 12 kB / 472 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.4479, allocations: 4 kB / 472.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.4479, allocations: 3.984 kB / 472.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.4499, allocations: 1.544 MB / 473.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001272/0.4501, allocations: 112 kB / 473.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006987/0.4508, allocations: 171.8 kB / 473.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005614/0.4513, allocations: 260.3 kB / 474.1 MB, free: 28.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.943e-05/0.4515, allocations: 43.98 kB / 474.2 MB, free: 28.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.4574, allocations: 13.32 MB / 487.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4574, allocations: 3.984 kB / 487.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.4624, allocations: 2.731 MB / 490.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4634, allocations: 488.5 kB / 490.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003781/0.4638, allocations: 23.95 kB / 490.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009646/0.4648, allocations: 111.9 kB / 490.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/0.4651, allocations: 148.7 kB / 491 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.429e-05/0.4652, allocations: 51.97 kB / 491 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001901/0.4671, allocations: 1.739 MB / 492.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4671, allocations: 0 / 492.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4688, allocations: 0.6508 MB / 493.4 MB, free: 8.129 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.005951/0.4747, allocations: 3.954 MB / 497.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003533/0.4783, allocations: 2.64 MB / 0.4883 GB, free: 1.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4783, allocations: 0 / 0.4883 GB, free: 1.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002231/0.4806, allocations: 2.021 MB / 0.4903 GB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003869/0.4845, allocations: 0.5786 MB / 0.4908 GB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06432/0.5488, allocations: 22.07 MB / 0.5124 GB, free: 6.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/0.5505, allocations: 1.708 MB / 0.5141 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0027/0.5532, allocations: 399.3 kB / 0.5144 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001778/0.555, allocations: 1.191 MB / 0.5156 GB, free: 3.562 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.555, allocations: 0 / 0.5156 GB, free: 3.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1262/0.6812, allocations: 60.98 MB / 0.5751 GB, free: 6.922 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.6814, allocations: 183.1 kB / 0.5753 GB, free: 6.688 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.731/4.412, allocations: 3.938 kB / 0.5753 GB, free: 6.684 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)