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.001601/0.0016, allocations: 100.6 kB / 17.93 MB, free: 5.41 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.001879/0.001879, allocations: 193.8 kB / 18.86 MB, free: 4.484 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.31/1.31, allocations: 205.1 MB / 224.7 MB, free: 12.43 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.00108/0.00108, allocations: 43.94 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08528, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01239/0.09772, allocations: 13.4 MB / 340.8 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.118, allocations: 19.13 MB / 360 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.1202, allocations: 63.5 kB / 360 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.1233, allocations: 0.9583 MB / 361 MB, free: 3.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006673/0.13, allocations: 1.934 MB / 362.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004231/0.1342, allocations: 1.203 MB / 364.1 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00885/0.1431, allocations: 6.351 MB / 370.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006697/0.1438, allocations: 436.5 kB / 370.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1451, allocations: 0.9679 MB / 371.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.1461, allocations: 1.06 MB / 372.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.1463, allocations: 76 kB / 373 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.1495, allocations: 1.159 MB / 374.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.1499, allocations: 321.7 kB / 374.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.1511, allocations: 1.331 MB / 375.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.1538, allocations: 2.75 MB / 378.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1538, allocations: 0 / 378.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1538, allocations: 4 kB / 378.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.232e-05/0.1539, allocations: 4 kB / 378.6 MB, free: 1.422 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.1376/0.2915, allocations: 3.588 MB / 382.2 MB, free: 53.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.2916, allocations: 9.188 kB / 382.2 MB, free: 53.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006589/0.2922, allocations: 379.3 kB / 382.5 MB, free: 53.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004241/0.2965, allocations: 2.563 MB / 385.1 MB, free: 52.24 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.2966, allocations: 33.92 kB / 385.1 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.2967, allocations: 52.64 kB / 385.2 MB, free: 52.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.2982, allocations: 0.7576 MB / 385.9 MB, free: 51.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.2982, allocations: 1.672 kB / 385.9 MB, free: 51.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.899e-05/0.2983, allocations: 20.5 kB / 386 MB, free: 51.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.2984, allocations: 20.17 kB / 386 MB, free: 51.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3, allocations: 0.8572 MB / 386.8 MB, free: 51.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004981/0.305, allocations: 2.983 MB / 389.8 MB, free: 50.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.3066, allocations: 0.7946 MB / 390.6 MB, free: 49.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.3079, allocations: 0.9587 MB / 391.6 MB, free: 49.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0215/0.3295, allocations: 30.14 MB / 421.7 MB, free: 19.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.3305, allocations: 0.5878 MB / 422.3 MB, free: 19.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 2.805e-06/0.3305, allocations: 0 / 422.3 MB, free: 19.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01053/0.3411, allocations: 5.229 MB / 427.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.3411, allocations: 68.41 kB / 427.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002515/0.3437, allocations: 2.709 MB / 430.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.3438, allocations: 45.7 kB / 430.4 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007277/0.3445, allocations: 1.307 MB / 431.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.3447, allocations: 327.2 kB / 432 MB, free: 9.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.345, allocations: 242.2 kB / 432.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.565e-05/0.3451, allocations: 345.9 kB / 432.6 MB, free: 8.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.3461, allocations: 482 kB / 433 MB, free: 8.086 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.3472, allocations: 0.6431 MB / 433.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002017/0.3492, allocations: 1.136 MB / 434.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3492, allocations: 4 kB / 434.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003287/0.3525, allocations: 1.978 MB / 436.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3526, allocations: 8 kB / 436.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/0.3527, allocations: 120 kB / 436.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005801/0.3533, allocations: 270.9 kB / 437.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007876/0.3541, allocations: 191.7 kB / 437.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008133/0.3622, allocations: 14.25 MB / 451.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.3638, allocations: 87.97 kB / 451.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.364, allocations: 60 kB / 451.8 MB, free: 3.746 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.0007657/0.3647, allocations: 429.4 kB / 452.2 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004116/0.3651, allocations: 375.5 kB / 452.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004854/0.37, allocations: 2.222 MB / 454.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.37, allocations: 11.94 kB / 454.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.3701, allocations: 4 kB / 454.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3701, allocations: 7.984 kB / 454.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00214/0.3722, allocations: 1.542 MB / 456.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001471/0.3724, allocations: 120 kB / 456.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006918/0.3731, allocations: 131.8 kB / 456.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006597/0.3737, allocations: 260.3 kB / 456.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/0.3739, allocations: 43.98 kB / 456.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008665/0.3825, allocations: 14.25 MB / 471.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.3826, allocations: 4.031 kB / 471.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005209/0.3878, allocations: 2.544 MB / 473.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.3888, allocations: 0.4925 MB / 474.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/0.3892, allocations: 24 kB / 474.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009788/0.3902, allocations: 79.89 kB / 474.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/0.3906, allocations: 144.8 kB / 474.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.3907, allocations: 47.98 kB / 474.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002181/0.3929, allocations: 1.782 MB / 476.2 MB, free: 9.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3929, allocations: 0 / 476.2 MB, free: 9.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001655/0.3945, allocations: 0.6588 MB / 476.9 MB, free: 8.977 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.001191/0.3957, allocations: 0.8223 MB / 477.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004229/0.4, allocations: 2.544 MB / 480.3 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.4, allocations: 4 kB / 480.3 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.4024, allocations: 1.951 MB / 482.2 MB, free: 3.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.4045, allocations: 0.5129 MB / 482.7 MB, free: 2.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007289/0.4118, allocations: 5.605 MB / 488.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.4129, allocations: 1.662 MB / 490 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004916/0.4134, allocations: 171.4 kB / 490.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4134, allocations: 4 kB / 490.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of Templates: time 0.2354/0.6488, allocations: 154.9 MB / 0.6299 GB, free: 39.55 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/jenkins1/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