Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008366/0.0008367, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 225.7 MB / 243.2 MB, free: 8.5 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008589/0.0008589, allocations: 92.89 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.000279, allocations: 15.92 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1931, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007411/0.2005, allocations: 12.57 MB / 417.1 MB, free: 18.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.2166, allocations: 20.68 MB / 437.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.218, allocations: 67.44 kB / 437.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002563/0.2206, allocations: 1.003 MB / 438.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006049/0.2267, allocations: 1.915 MB / 440.8 MB, free: 10.63 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004169/0.2309, allocations: 1.199 MB / 442 MB, free: 9.426 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008808/0.2397, allocations: 6.144 MB / 448.2 MB, free: 3.262 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006456/0.2404, allocations: 412.9 kB / 448.6 MB, free: 2.824 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.2419, allocations: 0.9987 MB / 449.6 MB, free: 1.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.2429, allocations: 1.052 MB / 450.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.2431, allocations: 40 kB / 450.6 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003777/0.2469, allocations: 1.342 MB / 452 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004141/0.2473, allocations: 289.7 kB / 452.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.2488, allocations: 1.317 MB / 453.6 MB, free: 13.76 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004925/0.2537, allocations: 3.525 MB / 457.1 MB, free: 10.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2537, allocations: 0 / 457.1 MB, free: 10.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.2538, allocations: 0 / 457.1 MB, free: 10.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.133e-05/0.2538, allocations: 0 / 457.1 MB, free: 10.22 MB / 330.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.004449/0.2583, allocations: 3.135 MB / 460.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2583, allocations: 8.031 kB / 460.3 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003254/0.2587, allocations: 379.4 kB / 460.6 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.2619, allocations: 2.548 MB / 463.2 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.262, allocations: 40.98 kB / 463.2 MB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.2621, allocations: 51.91 kB / 463.3 MB, free: 3.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.2634, allocations: 0.7772 MB / 464 MB, free: 3.129 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2634, allocations: 4 kB / 464 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.2635, allocations: 24 kB / 464.1 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.2635, allocations: 19.98 kB / 464.1 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.2652, allocations: 0.9178 MB / 465 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004161/0.2693, allocations: 2.998 MB / 468 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.2709, allocations: 0.8535 MB / 468.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.2723, allocations: 0.9878 MB / 469.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02684/0.2992, allocations: 30.11 MB / 500 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.3004, allocations: 0.627 MB / 0.4888 GB, free: 10.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.487e-06/0.3004, allocations: 3.938 kB / 0.4889 GB, free: 10.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.01209/0.3125, allocations: 5.686 MB / 0.4944 GB, free: 4.449 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3126, allocations: 68.39 kB / 0.4945 GB, free: 4.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003841/0.3165, allocations: 2.661 MB / 0.4971 GB, free: 1.695 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.675e-05/0.3166, allocations: 49.64 kB / 0.4971 GB, free: 1.641 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.3177, allocations: 1.299 MB / 0.4984 GB, free: 344 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.318, allocations: 335.1 kB / 0.4987 GB, free: 4 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1495/0.4675, allocations: 21.61 kB / 0.4987 GB, free: 101.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4677, allocations: 342.3 kB / 0.4991 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.469, allocations: 0.5261 MB / 0.4996 GB, free: 100.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.4704, allocations: 0.7028 MB / 0.5003 GB, free: 100.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/0.4727, allocations: 1.254 MB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4727, allocations: 8.031 kB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003508/0.4762, allocations: 2.095 MB / 0.5035 GB, free: 99.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4762, allocations: 5.531 kB / 0.5035 GB, free: 99.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.4764, allocations: 123.1 kB / 0.5037 GB, free: 99.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005825/0.477, allocations: 265.7 kB / 0.5039 GB, free: 99.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/0.4778, allocations: 233 kB / 0.5041 GB, free: 99.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005492/0.4833, allocations: 13.24 MB / 0.5171 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/0.4846, allocations: 125.6 kB / 0.5172 GB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-05/0.4847, allocations: 57.12 kB / 0.5172 GB, free: 86.07 MB / 378.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.0007489/0.4854, allocations: 425 kB / 0.5176 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.4857, allocations: 367.8 kB / 0.518 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004528/0.4902, allocations: 2.346 MB / 0.5203 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4902, allocations: 7.594 kB / 0.5203 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4902, allocations: 7.625 kB / 0.5203 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4902, allocations: 7.453 kB / 0.5203 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.4915, allocations: 1.54 MB / 0.5218 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001147/0.4917, allocations: 118 kB / 0.5219 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006623/0.4923, allocations: 172.5 kB / 0.5221 GB, free: 83.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004987/0.4928, allocations: 255.4 kB / 0.5223 GB, free: 83.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/0.4929, allocations: 49.7 kB / 0.5224 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005041/0.498, allocations: 13.24 MB / 0.5353 GB, free: 69.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.498, allocations: 0 / 0.5353 GB, free: 69.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004272/0.5023, allocations: 2.736 MB / 0.538 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.5028, allocations: 492.4 kB / 0.5384 GB, free: 65.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002816/0.5031, allocations: 27.98 kB / 0.5385 GB, free: 65.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.504, allocations: 107.9 kB / 0.5386 GB, free: 65.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.5044, allocations: 140.8 kB / 0.5387 GB, free: 65.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.517e-05/0.5044, allocations: 51.97 kB / 0.5388 GB, free: 65.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001686/0.5061, allocations: 1.735 MB / 0.5405 GB, free: 63.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5061, allocations: 0 / 0.5405 GB, free: 63.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001177/0.5073, allocations: 0.6563 MB / 0.5411 GB, free: 63.22 MB / 378.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.0009405/0.5083, allocations: 0.8233 MB / 0.5419 GB, free: 62.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.5114, allocations: 2.638 MB / 0.5445 GB, free: 59.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.5115, allocations: 0 / 0.5445 GB, free: 59.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.5133, allocations: 2.024 MB / 0.5465 GB, free: 57.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.5152, allocations: 0.5819 MB / 0.547 GB, free: 57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/0.5202, allocations: 5.664 MB / 0.5526 GB, free: 51.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006605/0.5209, allocations: 1.654 MB / 0.5542 GB, free: 49.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001234/0.5221, allocations: 395.3 kB / 0.5545 GB, free: 49.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.5224, allocations: 159.4 kB / 0.5547 GB, free: 49.09 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5224, allocations: 0 / 0.5547 GB, free: 49.09 MB / 378.7 MB Notification: Performance of Templates: time 0.04491/0.5673, allocations: 35.39 MB / 0.5893 GB, free: 13.93 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches