Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009659/0.0009659, allocations: 192.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.000754, allocations: 92.28 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002149/0.0002149, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1841, allocations: 51.41 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007426/0.1916, allocations: 12.57 MB / 424.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01827/0.2099, allocations: 20.96 MB / 445.6 MB, free: 7.887 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.2112, allocations: 63.5 kB / 445.6 MB, free: 7.824 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002302/0.2135, allocations: 0.9995 MB / 446.6 MB, free: 6.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005262/0.2188, allocations: 1.915 MB / 448.6 MB, free: 4.895 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003329/0.2221, allocations: 1.196 MB / 449.8 MB, free: 3.691 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00807/0.2302, allocations: 6.226 MB / 456 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005528/0.2308, allocations: 412.9 kB / 456.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.2319, allocations: 1.006 MB / 457.4 MB, free: 12 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000935/0.2328, allocations: 1.036 MB / 458.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.233, allocations: 40 kB / 458.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.2362, allocations: 1.353 MB / 459.8 MB, free: 9.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00026/0.2365, allocations: 289.6 kB / 460.1 MB, free: 9.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.2375, allocations: 1.321 MB / 461.4 MB, free: 7.934 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003381/0.2409, allocations: 3.532 MB / 465 MB, free: 4.387 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2409, allocations: 4 kB / 465 MB, free: 4.383 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.241, allocations: 0 / 465 MB, free: 4.383 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.674e-05/0.241, allocations: 0 / 465 MB, free: 4.383 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.004153/0.2451, allocations: 3.124 MB / 468.1 MB, free: 1.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.2452, allocations: 8.031 kB / 468.1 MB, free: 1.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003317/0.2455, allocations: 383.4 kB / 468.5 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003225/0.2488, allocations: 2.54 MB / 471 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.2488, allocations: 40.98 kB / 471 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.2489, allocations: 55.84 kB / 471.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.2503, allocations: 0.785 MB / 471.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2503, allocations: 0 / 471.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.2504, allocations: 20 kB / 471.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.2504, allocations: 19.98 kB / 471.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.2522, allocations: 0.9139 MB / 472.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004323/0.2565, allocations: 3.005 MB / 475.8 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.2582, allocations: 0.8496 MB / 476.7 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.2596, allocations: 0.9955 MB / 477.7 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0265/0.2861, allocations: 30.73 MB / 0.4965 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001125/0.2873, allocations: 0.6269 MB / 0.4971 GB, free: 3.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.485e-06/0.2873, allocations: 0 / 0.4971 GB, free: 3.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.1593/0.4466, allocations: 5.684 MB / 0.5027 GB, free: 95.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.4467, allocations: 69.72 kB / 0.5027 GB, free: 95.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002804/0.4495, allocations: 2.659 MB / 0.5053 GB, free: 94.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.4495, allocations: 48.12 kB / 0.5054 GB, free: 94.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007802/0.4503, allocations: 1.303 MB / 0.5066 GB, free: 93.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.4505, allocations: 333.5 kB / 0.507 GB, free: 93.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-05/0.4506, allocations: 18.75 kB / 0.507 GB, free: 93.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.531e-05/0.4506, allocations: 347.5 kB / 0.5073 GB, free: 93.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.4518, allocations: 0.5281 MB / 0.5078 GB, free: 93.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.453, allocations: 0.709 MB / 0.5085 GB, free: 92.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002309/0.4553, allocations: 1.25 MB / 0.5097 GB, free: 92.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4553, allocations: 1.25 kB / 0.5097 GB, free: 92.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003574/0.4589, allocations: 2.096 MB / 0.5118 GB, free: 91.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4589, allocations: 6.906 kB / 0.5118 GB, free: 91.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/0.4591, allocations: 122.3 kB / 0.5119 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005802/0.4597, allocations: 269.6 kB / 0.5122 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/0.4605, allocations: 232.2 kB / 0.5124 GB, free: 91.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00546/0.466, allocations: 13.25 MB / 0.5253 GB, free: 77.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.4672, allocations: 120.1 kB / 0.5254 GB, free: 77.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-05/0.4673, allocations: 60.95 kB / 0.5255 GB, free: 77.46 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.0006239/0.4679, allocations: 423.5 kB / 0.5259 GB, free: 77.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.4682, allocations: 372.6 kB / 0.5263 GB, free: 76.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004411/0.4726, allocations: 2.338 MB / 0.5285 GB, free: 75.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.4726, allocations: 15.94 kB / 0.5286 GB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4727, allocations: 4 kB / 0.5286 GB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4727, allocations: 3.984 kB / 0.5286 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.474, allocations: 1.543 MB / 0.5301 GB, free: 73.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001045/0.4741, allocations: 108 kB / 0.5302 GB, free: 73.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006917/0.4748, allocations: 171.8 kB / 0.5303 GB, free: 73.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005214/0.4753, allocations: 264.3 kB / 0.5306 GB, free: 73.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.7e-05/0.4754, allocations: 47.97 kB / 0.5306 GB, free: 73.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005296/0.4807, allocations: 13.24 MB / 0.5436 GB, free: 58.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4807, allocations: 0 / 0.5436 GB, free: 58.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.4851, allocations: 2.733 MB / 0.5462 GB, free: 55.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/0.4857, allocations: 496.4 kB / 0.5467 GB, free: 55.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002942/0.486, allocations: 20 kB / 0.5467 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009171/0.4869, allocations: 115.9 kB / 0.5468 GB, free: 55.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/0.4872, allocations: 140.8 kB / 0.547 GB, free: 54.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.679e-05/0.4873, allocations: 55.98 kB / 0.547 GB, free: 54.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001716/0.489, allocations: 1.739 MB / 0.5487 GB, free: 53.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.489, allocations: 0 / 0.5487 GB, free: 53.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001189/0.4902, allocations: 0.6446 MB / 0.5494 GB, free: 52.53 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.0009755/0.4912, allocations: 0.8217 MB / 0.5502 GB, free: 51.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003266/0.4945, allocations: 2.643 MB / 0.5527 GB, free: 49.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4945, allocations: 0 / 0.5527 GB, free: 49.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.4964, allocations: 2.016 MB / 0.5547 GB, free: 46.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.4983, allocations: 0.5824 MB / 0.5553 GB, free: 46.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/0.5032, allocations: 5.667 MB / 0.5608 GB, free: 40.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.5039, allocations: 1.654 MB / 0.5624 GB, free: 38.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001238/0.5052, allocations: 399.3 kB / 0.5628 GB, free: 38.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.5054, allocations: 163.4 kB / 0.563 GB, free: 38.39 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5054, allocations: 0 / 0.563 GB, free: 38.39 MB / 378.7 MB Notification: Performance of Templates: time 0.0473/0.5527, allocations: 35.43 MB / 0.5976 GB, free: 3.203 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches