Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003772, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.08136, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4592, allocations: 94.13 MB / 366.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.4596, allocations: 75.16 kB / 366.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.641/1.101, allocations: 126.1 MB / 492.5 MB, free: 69.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.101, allocations: 0 / 492.5 MB, free: 69.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001008/1.101, allocations: 40 kB / 492.5 MB, free: 69.17 MB / 346.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.01084/1.112, allocations: 3.318 MB / 495.8 MB, free: 65.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/1.112, allocations: 8.031 kB / 495.8 MB, free: 65.78 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000358/1.112, allocations: 106.5 kB / 495.9 MB, free: 65.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007468/1.113, allocations: 380.3 kB / 496.3 MB, free: 65.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00741/1.12, allocations: 2.29 MB / 498.6 MB, free: 62.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.939e-05/1.12, allocations: 33 kB / 498.6 MB, free: 62.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002761/1.121, allocations: 52 kB / 498.7 MB, free: 62.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003361/1.124, allocations: 0.8963 MB / 499.6 MB, free: 61.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/1.124, allocations: 0 / 499.6 MB, free: 61.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001836/1.124, allocations: 27.98 kB / 499.6 MB, free: 61.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/1.124, allocations: 19.98 kB / 499.6 MB, free: 61.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003933/1.128, allocations: 0.9099 MB / 0.4888 GB, free: 60.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/1.139, allocations: 3.05 MB / 0.4918 GB, free: 57.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003736/1.142, allocations: 0.8534 MB / 0.4926 GB, free: 56.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04968/1.192, allocations: 35.88 MB / 0.5276 GB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/1.194, allocations: 0.627 MB / 0.5283 GB, free: 15.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 6.151e-06/1.194, allocations: 3.984 kB / 0.5283 GB, free: 15.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.02025/1.214, allocations: 6.089 MB / 0.5342 GB, free: 8.879 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.913e-05/1.214, allocations: 274 kB / 0.5345 GB, free: 8.551 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003745/1.218, allocations: 2.252 MB / 0.5367 GB, free: 6.289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001532/1.218, allocations: 49.69 kB / 0.5367 GB, free: 6.234 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/1.22, allocations: 1.303 MB / 0.538 GB, free: 4.926 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/1.22, allocations: 335.1 kB / 0.5383 GB, free: 4.594 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.22, allocations: 20 kB / 0.5383 GB, free: 4.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.829e-05/1.22, allocations: 349.9 kB / 0.5387 GB, free: 4.227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/1.222, allocations: 0.5215 MB / 0.5392 GB, free: 3.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/1.225, allocations: 0.7592 MB / 0.5399 GB, free: 2.859 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/1.227, allocations: 0.5691 MB / 0.5405 GB, free: 2.293 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/1.227, allocations: 4 kB / 0.5405 GB, free: 2.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00638/1.233, allocations: 2.089 MB / 0.5425 GB, free: 120 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/1.233, allocations: 11.95 kB / 0.5425 GB, free: 108 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002594/1.234, allocations: 120 kB / 0.5426 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/1.235, allocations: 264.7 kB / 0.5429 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/1.236, allocations: 231.6 kB / 0.5431 GB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/1.25, allocations: 13.33 MB / 0.5561 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/1.252, allocations: 128 kB / 0.5562 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003042/1.253, allocations: 56 kB / 0.5563 GB, free: 0.6328 MB / 362.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.001614/1.254, allocations: 434.2 kB / 0.5567 GB, free: 204 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2456/1.5, allocations: 370.2 kB / 0.5571 GB, free: 85.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/1.51, allocations: 2.371 MB / 0.5594 GB, free: 85.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/1.511, allocations: 9.25 kB / 0.5594 GB, free: 85.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/1.511, allocations: 3.844 kB / 0.5594 GB, free: 85.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/1.511, allocations: 6.281 kB / 0.5594 GB, free: 85.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004083/1.515, allocations: 1.548 MB / 0.5609 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003292/1.515, allocations: 113.5 kB / 0.561 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001572/1.517, allocations: 173 kB / 0.5612 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/1.518, allocations: 263.4 kB / 0.5614 GB, free: 84.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000265/1.518, allocations: 44.61 kB / 0.5615 GB, free: 84.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009943/1.528, allocations: 13.33 MB / 0.5745 GB, free: 72.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.528, allocations: 0 / 0.5745 GB, free: 72.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.538, allocations: 2.721 MB / 0.5772 GB, free: 72.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/1.54, allocations: 0.4921 MB / 0.5776 GB, free: 71.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006862/1.541, allocations: 20.47 kB / 0.5777 GB, free: 71.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002072/1.543, allocations: 119 kB / 0.5778 GB, free: 71.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005766/1.543, allocations: 151.4 kB / 0.5779 GB, free: 71.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.544, allocations: 47.25 kB / 0.578 GB, free: 71.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004559/1.548, allocations: 1.749 MB / 0.5797 GB, free: 71.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.548, allocations: 3.828 kB / 0.5797 GB, free: 71.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002917/1.551, allocations: 0.7142 MB / 0.5804 GB, free: 71.67 MB / 362.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.01166/1.563, allocations: 4.083 MB / 0.5844 GB, free: 70.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006613/1.569, allocations: 2.628 MB / 0.5869 GB, free: 69.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/1.57, allocations: 0 / 0.5869 GB, free: 69.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003878/1.573, allocations: 2.014 MB / 0.5889 GB, free: 68.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002938/1.576, allocations: 484.9 kB / 0.5894 GB, free: 68.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05152/1.628, allocations: 22.06 MB / 0.6109 GB, free: 55.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/1.629, allocations: 1.72 MB / 0.6126 GB, free: 54.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002179/1.632, allocations: 341.5 kB / 0.6129 GB, free: 54.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/1.634, allocations: 1.147 MB / 0.614 GB, free: 54.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.413e-06/1.634, allocations: 0 / 0.614 GB, free: 54.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1435/1.777, allocations: 62.52 MB / 0.6751 GB, free: 4.887 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/1.777, allocations: 188.4 kB / 0.6753 GB, free: 4.645 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.991/7.768, allocations: 0 / 0.6753 GB, free: 4.645 MB / 362.7 MB