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.001309/0.001309, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001384/0.001385, allocations: 190 kB / 18.07 MB, free: 5.414 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.443/1.443, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001206/0.001207, allocations: 47.92 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08778, allocations: 46.63 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01321/0.101, allocations: 13.4 MB / 340 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02117/0.1222, allocations: 19.54 MB / 359.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.1244, allocations: 67.44 kB / 359.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002868/0.1273, allocations: 0.9505 MB / 360.5 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006235/0.1336, allocations: 1.887 MB / 362.4 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004087/0.1377, allocations: 1.149 MB / 363.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009179/0.1469, allocations: 6.179 MB / 369.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007002/0.1476, allocations: 409 kB / 370.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00129/0.1489, allocations: 0.9288 MB / 371.1 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009879/0.1499, allocations: 1.036 MB / 372.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1501, allocations: 48 kB / 372.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.1536, allocations: 1.136 MB / 373.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003572/0.1539, allocations: 297.7 kB / 373.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.1554, allocations: 1.304 MB / 374.9 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004602/0.16, allocations: 3.615 MB / 378.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.16, allocations: 0 / 378.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.16, allocations: 0 / 378.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.275e-05/0.1601, allocations: 0 / 378.5 MB, free: 0.7148 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.1403/0.3003, allocations: 3.599 MB / 382.1 MB, free: 53.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.3004, allocations: 9.438 kB / 382.1 MB, free: 53.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006345/0.3011, allocations: 379 kB / 382.5 MB, free: 53.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004188/0.3052, allocations: 2.548 MB / 385 MB, free: 52.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.3053, allocations: 38.34 kB / 385.1 MB, free: 52.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3054, allocations: 53.64 kB / 385.1 MB, free: 52.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.307, allocations: 0.7581 MB / 385.9 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.307, allocations: 0 / 385.9 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.168e-05/0.3071, allocations: 25.36 kB / 385.9 MB, free: 52.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.3071, allocations: 20.81 kB / 385.9 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.3089, allocations: 0.8544 MB / 386.8 MB, free: 51.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.3144, allocations: 2.986 MB / 389.8 MB, free: 50.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.316, allocations: 0.8005 MB / 390.6 MB, free: 50.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/0.3173, allocations: 0.9522 MB / 391.5 MB, free: 49.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02377/0.3411, allocations: 30.13 MB / 421.7 MB, free: 19.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.3428, allocations: 0.5929 MB / 422.3 MB, free: 19.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.878e-06/0.3428, allocations: 3.969 kB / 422.3 MB, free: 19.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01759/0.3604, allocations: 5.223 MB / 427.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.3605, allocations: 72.41 kB / 427.6 MB, free: 13.63 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004916/0.3654, allocations: 2.705 MB / 430.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002762/0.3657, allocations: 41.7 kB / 430.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.3669, allocations: 1.305 MB / 431.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.3673, allocations: 339.2 kB / 431.9 MB, free: 9.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004896/0.3678, allocations: 238.2 kB / 432.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.657e-05/0.3679, allocations: 345.9 kB / 432.5 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001801/0.3697, allocations: 478 kB / 433 MB, free: 8.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.3716, allocations: 0.647 MB / 433.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00338/0.375, allocations: 1.136 MB / 434.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.375, allocations: 0 / 434.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.005745/0.3808, allocations: 1.982 MB / 436.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.3808, allocations: 4 kB / 436.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001933/0.381, allocations: 124.9 kB / 436.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009124/0.382, allocations: 262.8 kB / 437.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.3832, allocations: 195.7 kB / 437.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.3939, allocations: 13.25 MB / 450.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/0.3965, allocations: 91.95 kB / 450.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/0.3968, allocations: 60 kB / 450.7 MB, free: 4.898 MB / 334.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.001407/0.3982, allocations: 430.1 kB / 451.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.3993, allocations: 371.5 kB / 451.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008166/0.4075, allocations: 2.223 MB / 453.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.4075, allocations: 8 kB / 453.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.4075, allocations: 4 kB / 453.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4076, allocations: 7.922 kB / 453.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.411, allocations: 1.55 MB / 455.3 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002262/0.4113, allocations: 120 kB / 455.4 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.4124, allocations: 131.8 kB / 455.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009775/0.4134, allocations: 264.3 kB / 455.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.4136, allocations: 43.98 kB / 455.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/0.4258, allocations: 13.24 MB / 469.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4259, allocations: 0 / 469.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006902/0.4328, allocations: 2.551 MB / 471.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.4344, allocations: 496.4 kB / 472.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007754/0.4352, allocations: 27.92 kB / 472.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00165/0.4368, allocations: 79.89 kB / 472.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004756/0.4373, allocations: 132.8 kB / 472.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/0.4375, allocations: 59.97 kB / 472.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003828/0.4413, allocations: 1.774 MB / 474.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4413, allocations: 0 / 474.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003004/0.4444, allocations: 0.6585 MB / 474.8 MB, free: 11.23 MB / 366.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.001703/0.4461, allocations: 0.8203 MB / 475.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004601/0.4507, allocations: 2.514 MB / 478.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4507, allocations: 0 / 478.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002869/0.4536, allocations: 1.96 MB / 480.1 MB, free: 5.629 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.4567, allocations: 0.4886 MB / 480.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008626/0.4653, allocations: 5.536 MB / 486.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.4665, allocations: 1.662 MB / 487.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002089/0.4686, allocations: 387.4 kB / 488.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/0.4691, allocations: 167.4 kB / 488.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4691, allocations: 0 / 488.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of Templates: time 0.06236/0.5315, allocations: 35.66 MB / 0.5117 GB, free: 9.625 MB / 414.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 -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