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.001024/0.001024, allocations: 96.86 kB / 17.3 MB, free: 6.344 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.001194/0.001194, allocations: 177.1 kB / 18.21 MB, free: 5.531 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.377/1.377, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0006444/0.0006445, allocations: 8 kB / 281.4 MB, free: 3.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1226, allocations: 47.59 MB / 329 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01951/0.1421, allocations: 12.88 MB / 341.8 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03595/0.1781, allocations: 19.25 MB / 361.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003833/0.182, allocations: 63.5 kB / 361.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005144/0.1872, allocations: 0.9669 MB / 362.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.1996, allocations: 1.887 MB / 364 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006192/0.2058, allocations: 1.156 MB / 365.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01436/0.2202, allocations: 6.171 MB / 371.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.2213, allocations: 412.9 kB / 371.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001842/0.2231, allocations: 0.9132 MB / 372.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.2247, allocations: 1.028 MB / 373.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000205/0.2249, allocations: 44 kB / 373.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005128/0.2301, allocations: 1.132 MB / 374.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003981/0.2305, allocations: 285.7 kB / 375.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.2323, allocations: 1.329 MB / 376.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006053/0.2383, allocations: 3.548 MB / 380 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2383, allocations: 0 / 380 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2384, allocations: 3.938 kB / 380 MB, free: 500 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.525e-05/0.2384, allocations: 0 / 380 MB, free: 500 kB / 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.1691/0.4076, allocations: 3.154 MB / 383.2 MB, free: 53.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.4076, allocations: 9.469 kB / 383.2 MB, free: 53.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009229/0.4086, allocations: 379.4 kB / 383.5 MB, free: 52.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004182/0.4128, allocations: 2.555 MB / 386.1 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.4128, allocations: 39.33 kB / 386.1 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.413, allocations: 54.19 kB / 386.2 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.4146, allocations: 0.7883 MB / 387 MB, free: 51.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4146, allocations: 0 / 387 MB, free: 51.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.4147, allocations: 26.22 kB / 387 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.4147, allocations: 18.62 kB / 387 MB, free: 51.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.4166, allocations: 0.9235 MB / 387.9 MB, free: 51.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004894/0.4215, allocations: 3.016 MB / 390.9 MB, free: 50.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.4232, allocations: 0.8535 MB / 391.8 MB, free: 49.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.4246, allocations: 0.9949 MB / 392.8 MB, free: 49.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02196/0.4466, allocations: 30.18 MB / 423 MB, free: 19.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001054/0.4477, allocations: 0.6303 MB / 423.6 MB, free: 18.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 3.597e-06/0.4477, allocations: 0.8906 kB / 423.6 MB, free: 18.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01199/0.4597, allocations: 5.698 MB / 429.3 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.4598, allocations: 76.88 kB / 429.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002855/0.4626, allocations: 2.709 MB / 432.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.081e-05/0.4627, allocations: 41.7 kB / 432.1 MB, free: 9.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007864/0.4635, allocations: 1.297 MB / 433.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.4638, allocations: 338.7 kB / 433.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.4639, allocations: 81.67 kB / 433.8 MB, free: 8.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.085e-05/0.464, allocations: 345.9 kB / 434.2 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.4652, allocations: 0.5409 MB / 434.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.4664, allocations: 0.7056 MB / 435.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.4688, allocations: 1.26 MB / 436.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4688, allocations: 0 / 436.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003786/0.4726, allocations: 2.109 MB / 438.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.4727, allocations: 8 kB / 438.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/0.4728, allocations: 120 kB / 438.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006/0.4734, allocations: 270.5 kB / 439.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008286/0.4742, allocations: 227.7 kB / 439.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008565/0.4828, allocations: 13.26 MB / 452.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.4845, allocations: 120 kB / 452.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.4847, allocations: 60 kB / 452.8 MB, free: 3.539 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.0008395/0.4855, allocations: 430 kB / 453.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003992/0.4859, allocations: 373.7 kB / 453.6 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005443/0.4914, allocations: 2.344 MB / 456 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4914, allocations: 8 kB / 456 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.4914, allocations: 7.938 kB / 456 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4915, allocations: 7.984 kB / 456 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.4938, allocations: 1.555 MB / 457.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001432/0.494, allocations: 112 kB / 457.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000773/0.4948, allocations: 167.8 kB / 457.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006471/0.4954, allocations: 267 kB / 458.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/0.4955, allocations: 43.98 kB / 458.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009025/0.5045, allocations: 13.26 MB / 471.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5046, allocations: 0 / 471.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005802/0.5104, allocations: 2.748 MB / 474.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.5116, allocations: 492.5 kB / 474.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003194/0.5119, allocations: 23.98 kB / 474.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.513, allocations: 115.9 kB / 474.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003599/0.5133, allocations: 132.8 kB / 474.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.5134, allocations: 55.97 kB / 474.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00241/0.5159, allocations: 1.774 MB / 476.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5159, allocations: 4 kB / 476.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001723/0.5176, allocations: 0.66 MB / 477.4 MB, free: 9.422 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.001381/0.519, allocations: 0.8198 MB / 478.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004363/0.5234, allocations: 2.64 MB / 480.8 MB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5234, allocations: 4.188 kB / 480.8 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.526, allocations: 2.023 MB / 482.9 MB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.5285, allocations: 497.2 kB / 483.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00744/0.5359, allocations: 5.684 MB / 489 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.5371, allocations: 1.666 MB / 490.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.5386, allocations: 391.4 kB / 491.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.5389, allocations: 163.4 kB / 491.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5389, allocations: 0 / 491.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of Templates: time 0.06323/0.6021, allocations: 35.46 MB / 0.5144 GB, free: 7.828 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