Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000882/0.0008819, allocations: 179.1 kB / 17.36 MB, free: 4.324 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.6 MB / 223.7 MB, free: 8.977 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007523/0.0007524, allocations: 90.42 kB / 272.1 MB, free: 8.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002381, allocations: 4 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2044, allocations: 47.57 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008114/0.2126, allocations: 11.98 MB / 388.6 MB, free: 36.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01699/0.2296, allocations: 19.78 MB / 408.4 MB, free: 16.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.2317, allocations: 63.5 kB / 408.4 MB, free: 16.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002455/0.2342, allocations: 0.976 MB / 409.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006361/0.2406, allocations: 1.88 MB / 411.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004114/0.2447, allocations: 1.156 MB / 412.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008347/0.2531, allocations: 6.011 MB / 418.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006544/0.2538, allocations: 412.9 kB / 418.8 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.2549, allocations: 0.8859 MB / 419.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007249/0.2556, allocations: 1.032 MB / 420.8 MB, free: 3.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.2558, allocations: 44 kB / 420.8 MB, free: 3.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.259, allocations: 1.085 MB / 421.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.2593, allocations: 285.7 kB / 422.2 MB, free: 2.414 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009313/0.2602, allocations: 1.317 MB / 423.5 MB, free: 1.082 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003969/0.2642, allocations: 3.564 MB / 427 MB, free: 13.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2642, allocations: 0 / 427 MB, free: 13.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2642, allocations: 3.938 kB / 427 MB, free: 13.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.478e-05/0.2643, allocations: 0 / 427 MB, free: 13.5 MB / 314.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.004653/0.269, allocations: 3.151 MB / 430.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.269, allocations: 8.031 kB / 430.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.2693, allocations: 383.4 kB / 430.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.2727, allocations: 2.56 MB / 433.1 MB, free: 7.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.2728, allocations: 36.94 kB / 433.2 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.2729, allocations: 48 kB / 433.2 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.2743, allocations: 0.785 MB / 434 MB, free: 6.379 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2743, allocations: 4 kB / 434 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.579e-05/0.2744, allocations: 20 kB / 434 MB, free: 6.355 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.2744, allocations: 23.98 kB / 434.1 MB, free: 6.332 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.2762, allocations: 0.9139 MB / 435 MB, free: 5.414 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004706/0.2809, allocations: 3.021 MB / 438 MB, free: 2.332 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.2825, allocations: 0.8574 MB / 438.8 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.2839, allocations: 0.9879 MB / 439.8 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0272/0.3112, allocations: 30.17 MB / 470 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.3123, allocations: 0.6308 MB / 470.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.835e-06/0.3124, allocations: 0 / 470.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.01165/0.324, allocations: 5.697 MB / 476.3 MB, free: 7.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.3241, allocations: 68.41 kB / 476.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.3272, allocations: 2.682 MB / 479.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.512e-05/0.3273, allocations: 41.7 kB / 479.1 MB, free: 4.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.3283, allocations: 1.303 MB / 480.4 MB, free: 3.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.3286, allocations: 335.2 kB / 480.8 MB, free: 3.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.3286, allocations: 20 kB / 480.8 MB, free: 3.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.743e-05/0.3287, allocations: 349.9 kB / 481.1 MB, free: 2.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.33, allocations: 0.5254 MB / 481.6 MB, free: 2.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.3313, allocations: 0.7017 MB / 482.3 MB, free: 1.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.3338, allocations: 1.258 MB / 483.6 MB, free: 164 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3338, allocations: 0 / 483.6 MB, free: 164 kB / 362.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003833/0.3376, allocations: 2.097 MB / 485.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.3377, allocations: 11.94 kB / 485.7 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001476/0.3378, allocations: 128 kB / 485.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006632/0.3385, allocations: 260.4 kB / 486.1 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008591/0.3394, allocations: 231.7 kB / 486.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007995/0.3474, allocations: 13.26 MB / 499.6 MB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.3487, allocations: 127.9 kB / 499.7 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.3489, allocations: 56 kB / 499.8 MB, free: 14.57 MB / 394.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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007687/0.3496, allocations: 431.2 kB / 0.4885 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003153/0.35, allocations: 367.6 kB / 0.4888 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00482/0.3548, allocations: 2.343 MB / 0.4911 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/0.3548, allocations: 11.94 kB / 0.4911 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3548, allocations: 4 kB / 0.4911 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3549, allocations: 7.969 kB / 0.4911 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.3566, allocations: 1.555 MB / 0.4926 GB, free: 9.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001334/0.3568, allocations: 112 kB / 0.4927 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007344/0.3575, allocations: 171.8 kB / 0.4929 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006295/0.3581, allocations: 264.3 kB / 0.4932 GB, free: 9.152 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-05/0.3582, allocations: 43.98 kB / 0.4932 GB, free: 9.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1594/0.5177, allocations: 13.23 MB / 0.5061 GB, free: 122.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5177, allocations: 0.5938 kB / 0.5061 GB, free: 122.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005548/0.5233, allocations: 2.74 MB / 0.5088 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008167/0.5241, allocations: 493.8 kB / 0.5093 GB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/0.5244, allocations: 21.05 kB / 0.5093 GB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009514/0.5254, allocations: 113.7 kB / 0.5094 GB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003917/0.5258, allocations: 143.2 kB / 0.5095 GB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.5259, allocations: 50.52 kB / 0.5096 GB, free: 121.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002446/0.5283, allocations: 1.749 MB / 0.5113 GB, free: 121.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5283, allocations: 1.594 kB / 0.5113 GB, free: 121.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001775/0.5301, allocations: 0.6555 MB / 0.5119 GB, free: 121.2 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001232/0.5314, allocations: 0.8255 MB / 0.5127 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003521/0.5349, allocations: 2.644 MB / 0.5153 GB, free: 119.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.5349, allocations: 0 / 0.5153 GB, free: 119.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00214/0.5371, allocations: 2.018 MB / 0.5173 GB, free: 118 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.5387, allocations: 499.4 kB / 0.5178 GB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005623/0.5444, allocations: 5.684 MB / 0.5233 GB, free: 113.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.5451, allocations: 1.665 MB / 0.5249 GB, free: 111.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001325/0.5465, allocations: 391.2 kB / 0.5253 GB, free: 111.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.5467, allocations: 171.4 kB / 0.5255 GB, free: 111.1 MB / 394.7 MB Notification: Performance of SimCode: time 4.9e-07/0.5467, allocations: 0 / 0.5255 GB, free: 111.1 MB / 394.7 MB Notification: Performance of Templates: time 0.05001/0.5967, allocations: 35.47 MB / 0.5601 GB, free: 75.66 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches