Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09315, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.5471, allocations: 97.95 MB / 406.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.5474, allocations: 71.22 kB / 406.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4238/0.9712, allocations: 124.1 MB / 0.5182 GB, free: 4.172 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.9713, allocations: 0 / 0.5182 GB, free: 4.172 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.217e-05/0.9714, allocations: 40 kB / 0.5182 GB, free: 4.133 MB / 410.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.009438/0.9808, allocations: 3.322 MB / 0.5215 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.9809, allocations: 8.031 kB / 0.5215 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003603/0.9813, allocations: 98.5 kB / 0.5216 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007872/0.9821, allocations: 383.4 kB / 0.5219 GB, free: 256 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2766/1.259, allocations: 2.275 MB / 0.5242 GB, free: 81.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.221e-05/1.259, allocations: 33.16 kB / 0.5242 GB, free: 81.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/1.259, allocations: 51.62 kB / 0.5243 GB, free: 81.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/1.262, allocations: 0.8982 MB / 0.5251 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/1.262, allocations: 3.234 kB / 0.5251 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/1.262, allocations: 19.66 kB / 0.5251 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.015e-05/1.262, allocations: 21.64 kB / 0.5252 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003401/1.266, allocations: 0.9131 MB / 0.5261 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009312/1.275, allocations: 3.044 MB / 0.529 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003334/1.278, allocations: 0.8577 MB / 0.5299 GB, free: 80.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04863/1.327, allocations: 35.87 MB / 0.5649 GB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001886/1.329, allocations: 0.6337 MB / 0.5655 GB, free: 54.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 5.15e-06/1.329, allocations: 0 / 0.5655 GB, free: 54.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.02143/1.35, allocations: 6.076 MB / 0.5715 GB, free: 52.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.351, allocations: 273.6 kB / 0.5717 GB, free: 51.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004505/1.355, allocations: 2.259 MB / 0.5739 GB, free: 51.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002589/1.355, allocations: 45.92 kB / 0.574 GB, free: 51.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001201/1.357, allocations: 1.055 MB / 0.575 GB, free: 51.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005108/1.357, allocations: 335.4 kB / 0.5753 GB, free: 51.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/1.357, allocations: 23.47 kB / 0.5753 GB, free: 51.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/1.357, allocations: 356.2 kB / 0.5757 GB, free: 51.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/1.36, allocations: 0.5211 MB / 0.5762 GB, free: 51.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/1.362, allocations: 0.7507 MB / 0.5769 GB, free: 50.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/1.365, allocations: 0.5783 MB / 0.5775 GB, free: 50.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/1.365, allocations: 7.484 kB / 0.5775 GB, free: 50.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006101/1.371, allocations: 1.788 MB / 0.5792 GB, free: 50.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/1.371, allocations: 8.719 kB / 0.5792 GB, free: 50.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002607/1.371, allocations: 118.9 kB / 0.5794 GB, free: 50.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/1.372, allocations: 265.4 kB / 0.5796 GB, free: 50.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/1.374, allocations: 234.2 kB / 0.5798 GB, free: 50.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009539/1.383, allocations: 13.32 MB / 0.5929 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/1.386, allocations: 127.8 kB / 0.593 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/1.386, allocations: 56.83 kB / 0.593 GB, free: 37.8 MB / 410.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.001604/1.388, allocations: 434.7 kB / 0.5934 GB, free: 37.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008488/1.389, allocations: 374 kB / 0.5938 GB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009221/1.398, allocations: 2.374 MB / 0.5961 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/1.398, allocations: 11.44 kB / 0.5961 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/1.398, allocations: 3.719 kB / 0.5961 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/1.398, allocations: 11.17 kB / 0.5961 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/1.402, allocations: 1.538 MB / 0.5976 GB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002702/1.402, allocations: 117.9 kB / 0.5978 GB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/1.403, allocations: 167.5 kB / 0.5979 GB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/1.404, allocations: 264.9 kB / 0.5982 GB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002492/1.405, allocations: 46.28 kB / 0.5982 GB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/1.415, allocations: 13.32 MB / 0.6112 GB, free: 40.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.415, allocations: 2.078 kB / 0.6112 GB, free: 40.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009259/1.424, allocations: 2.716 MB / 0.6139 GB, free: 39.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/1.426, allocations: 0.4937 MB / 0.6144 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008849/1.427, allocations: 23.05 kB / 0.6144 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002296/1.429, allocations: 116.3 kB / 0.6145 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006179/1.43, allocations: 151.3 kB / 0.6146 GB, free: 39.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/1.43, allocations: 45.12 kB / 0.6147 GB, free: 39.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003749/1.434, allocations: 1.757 MB / 0.6164 GB, free: 39.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.434, allocations: 0 / 0.6164 GB, free: 39.23 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002986/1.437, allocations: 0.7124 MB / 0.6171 GB, free: 39.23 MB / 426.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.01193/1.449, allocations: 4.083 MB / 0.6211 GB, free: 38.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006973/1.456, allocations: 2.642 MB / 0.6237 GB, free: 36.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/1.456, allocations: 3.047 kB / 0.6237 GB, free: 36.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00434/1.46, allocations: 2.013 MB / 0.6256 GB, free: 35.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003306/1.464, allocations: 477.8 kB / 0.6261 GB, free: 35.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05265/1.516, allocations: 22.11 MB / 0.6477 GB, free: 19.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001522/1.518, allocations: 1.723 MB / 0.6494 GB, free: 18.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.52, allocations: 1.154 MB / 0.6505 GB, free: 17.72 MB / 426.7 MB Notification: Performance of SimCode: time 2.665e-06/1.52, allocations: 0 / 0.6505 GB, free: 17.72 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.202/6.722, allocations: 155.3 MB / 0.8021 GB, free: 12.73 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat