Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 108.4 kB / 18.34 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 48.27 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08751/0.08895, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01343/0.1024, allocations: 13.54 MB / 342.3 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02056/0.123, allocations: 19.35 MB / 361.6 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.1247, allocations: 126.9 kB / 361.7 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.1272, allocations: 1.1 MB / 362.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006615/0.1338, allocations: 2.246 MB / 365.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004284/0.1381, allocations: 1.389 MB / 366.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009333/0.1474, allocations: 6.281 MB / 372.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006751/0.1481, allocations: 436.5 kB / 373.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.1495, allocations: 0.9758 MB / 374.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.1509, allocations: 1.064 MB / 375.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.151, allocations: 76 kB / 375.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004322/0.1554, allocations: 1.159 MB / 376.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003022/0.1557, allocations: 321.7 kB / 376.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.1569, allocations: 1.335 MB / 378.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1713/0.3282, allocations: 3.708 MB / 381.8 MB, free: 25.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.3282, allocations: 0 / 381.8 MB, free: 25.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3282, allocations: 0 / 381.8 MB, free: 25.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.874e-05/0.3283, allocations: 0 / 381.8 MB, free: 25.27 MB / 318.1 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.007108/0.3354, allocations: 3.581 MB / 385.4 MB, free: 23.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.3355, allocations: 8.625 kB / 385.4 MB, free: 23.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005345/0.3361, allocations: 384.2 kB / 385.8 MB, free: 23.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003997/0.3401, allocations: 2.537 MB / 388.3 MB, free: 22.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.3401, allocations: 36.64 kB / 388.3 MB, free: 22.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.3403, allocations: 53.69 kB / 388.4 MB, free: 22.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.3418, allocations: 0.7547 MB / 389.1 MB, free: 22.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3418, allocations: 0 / 389.1 MB, free: 22.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.371e-05/0.3419, allocations: 21.42 kB / 389.2 MB, free: 22.24 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.3419, allocations: 19.64 kB / 389.2 MB, free: 22.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.3437, allocations: 0.8612 MB / 390 MB, free: 22.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00544/0.3491, allocations: 2.971 MB / 393 MB, free: 21.76 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.3507, allocations: 0.7956 MB / 393.8 MB, free: 21.72 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/0.3521, allocations: 0.9553 MB / 394.8 MB, free: 21.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02527/0.3774, allocations: 30.12 MB / 424.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.3785, allocations: 0.6031 MB / 425.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 2.685e-06/0.3786, allocations: 0 / 425.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.01163/0.3902, allocations: 5.229 MB / 430.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.3903, allocations: 68.39 kB / 430.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003244/0.3935, allocations: 2.709 MB / 433.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3936, allocations: 41.7 kB / 433.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.3947, allocations: 1.303 MB / 434.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/0.395, allocations: 339.4 kB / 435.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003544/0.3953, allocations: 230.2 kB / 435.4 MB, free: 488 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3954, allocations: 351 kB / 435.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.3967, allocations: 478 kB / 436.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.3979, allocations: 0.6509 MB / 436.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/0.4003, allocations: 1.133 MB / 438 MB, free: 13.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.4004, allocations: 0 / 438 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003847/0.4042, allocations: 1.984 MB / 440 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.4042, allocations: 4 kB / 440 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/0.4044, allocations: 121.6 kB / 440.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000666/0.4051, allocations: 272.6 kB / 440.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.4059, allocations: 189.4 kB / 440.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/0.4153, allocations: 14.25 MB / 454.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.4173, allocations: 95.95 kB / 454.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.4175, allocations: 59.84 kB / 455 MB, free: 11.46 MB / 366.1 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 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * 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.0009405/0.4185, allocations: 424.1 kB / 455.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004987/0.419, allocations: 371.5 kB / 455.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004757/0.4237, allocations: 2.216 MB / 457.9 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-06/0.4238, allocations: 8 kB / 458 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.4238, allocations: 8 kB / 458 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4238, allocations: 3.984 kB / 458 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002423/0.4262, allocations: 1.555 MB / 459.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001471/0.4264, allocations: 116 kB / 459.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.4271, allocations: 135.6 kB / 459.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006586/0.4278, allocations: 267.7 kB / 460 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.4279, allocations: 47.92 kB / 460.1 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009797/0.4377, allocations: 14.24 MB / 474.3 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4378, allocations: 0 / 474.3 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005328/0.4431, allocations: 2.536 MB / 476.9 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.4443, allocations: 0.4964 MB / 477.3 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003138/0.4447, allocations: 17.64 kB / 477.4 MB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.4456, allocations: 83.89 kB / 477.4 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.446, allocations: 140 kB / 477.6 MB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.4461, allocations: 59.97 kB / 477.6 MB, free: 3.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.4486, allocations: 1.786 MB / 479.4 MB, free: 1.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4486, allocations: 1.219 kB / 479.4 MB, free: 1.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001891/0.4505, allocations: 0.6561 MB / 480.1 MB, free: 0.7852 MB / 382.1 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.001291/0.4518, allocations: 0.809 MB / 480.9 MB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0044/0.4562, allocations: 2.521 MB / 483.4 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4562, allocations: 0 / 483.4 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/0.4588, allocations: 1.957 MB / 485.4 MB, free: 11.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.4609, allocations: 0.5167 MB / 485.9 MB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00665/0.4676, allocations: 4.683 MB / 490.6 MB, free: 6.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4687, allocations: 1.658 MB / 492.2 MB, free: 4.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.4698, allocations: 395.4 kB / 492.6 MB, free: 4.098 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.4701, allocations: 171.4 kB / 492.8 MB, free: 3.934 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4701, allocations: 4 kB / 492.8 MB, free: 3.93 MB / 398.1 MB Notification: Performance of Templates: time 0.06434/0.5344, allocations: 37.13 MB / 0.5175 GB, free: 14.94 MB / 446.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches