Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008196/0.0008193, allocations: 94.41 kB / 17.31 MB, free: 6.535 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.0008582/0.0008582, allocations: 178.2 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002099, allocations: 4 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07053/0.07075, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01034/0.08111, allocations: 13.52 MB / 366 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1508/0.2319, allocations: 20.22 MB / 386.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009287/0.2328, allocations: 63.88 kB / 386.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.2348, allocations: 1.003 MB / 387.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004616/0.2395, allocations: 1.91 MB / 389.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002983/0.2424, allocations: 1.199 MB / 390.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006472/0.2489, allocations: 6.312 MB / 396.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.2494, allocations: 412.7 kB / 397.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000949/0.2504, allocations: 1.025 MB / 398.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007913/0.2512, allocations: 1.045 MB / 399.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2513, allocations: 42.62 kB / 399.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.2541, allocations: 1.455 MB / 400.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.2543, allocations: 296 kB / 401 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006774/0.255, allocations: 1.31 MB / 402.3 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.2564, allocations: 2.634 MB / 404.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2564, allocations: 3.312 kB / 404.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2564, allocations: 0 / 404.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/0.2564, allocations: 0 / 404.9 MB, free: 0.5469 MB / 302.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.003637/0.2601, allocations: 3.133 MB / 408 MB, free: 13.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.2601, allocations: 11.97 kB / 408.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.2604, allocations: 380.2 kB / 408.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.2634, allocations: 2.548 MB / 411 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.2634, allocations: 33 kB / 411 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2635, allocations: 51.94 kB / 411.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.2649, allocations: 0.789 MB / 411.8 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2649, allocations: 0 / 411.8 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-05/0.265, allocations: 16 kB / 411.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/0.265, allocations: 23.98 kB / 411.9 MB, free: 9.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.2667, allocations: 0.9217 MB / 412.8 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/0.2706, allocations: 3.009 MB / 415.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.2722, allocations: 0.8613 MB / 416.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.2735, allocations: 0.983 MB / 417.7 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0237/0.2972, allocations: 30.1 MB / 447.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.2983, allocations: 0.6347 MB / 448.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.334e-06/0.2983, allocations: 0 / 448.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01113/0.3094, allocations: 5.705 MB / 454.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.3095, allocations: 72.34 kB / 454.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002666/0.3121, allocations: 2.696 MB / 456.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.818e-05/0.3122, allocations: 41.7 kB / 456.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00093/0.3132, allocations: 1.302 MB / 458.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.3134, allocations: 336.5 kB / 458.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.3135, allocations: 81.67 kB / 458.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3136, allocations: 345.9 kB / 459 MB, free: 6.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.3148, allocations: 0.5254 MB / 459.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3161, allocations: 0.7124 MB / 460.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.3186, allocations: 1.258 MB / 461.5 MB, free: 3.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3186, allocations: 4 kB / 461.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003524/0.3221, allocations: 2.104 MB / 463.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3222, allocations: 14.59 kB / 463.6 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/0.3223, allocations: 124 kB / 463.7 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005873/0.3229, allocations: 272.8 kB / 464 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/0.3237, allocations: 227.7 kB / 464.2 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/0.331, allocations: 13.25 MB / 477.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.332, allocations: 120 kB / 477.6 MB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.772e-05/0.3321, allocations: 60 kB / 477.6 MB, free: 1.992 MB / 382.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.0005674/0.3327, allocations: 421.5 kB / 478 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002933/0.333, allocations: 371.5 kB / 478.4 MB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/0.3377, allocations: 2.343 MB / 480.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.3377, allocations: 8 kB / 480.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3377, allocations: 7.938 kB / 480.7 MB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.3377, allocations: 3.984 kB / 480.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.3392, allocations: 1.543 MB / 482.3 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001234/0.3393, allocations: 120 kB / 482.4 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006867/0.34, allocations: 171.8 kB / 482.6 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005458/0.3406, allocations: 264.3 kB / 482.8 MB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.3407, allocations: 47.92 kB / 482.9 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00718/0.3478, allocations: 13.24 MB / 496.1 MB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.3479, allocations: 0 / 496.1 MB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004724/0.3526, allocations: 2.743 MB / 498.9 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005508/0.3532, allocations: 0.4887 MB / 499.4 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/0.3534, allocations: 24 kB / 499.4 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009508/0.3544, allocations: 111.9 kB / 499.5 MB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.3546, allocations: 140.8 kB / 499.6 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.283e-05/0.3547, allocations: 47.98 kB / 499.7 MB, free: 10.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00183/0.3566, allocations: 1.777 MB / 0.4897 GB, free: 8.543 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3566, allocations: 0 / 0.4897 GB, free: 8.543 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001131/0.3577, allocations: 0.6522 MB / 0.4903 GB, free: 7.891 MB / 414.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.001009/0.3587, allocations: 0.7962 MB / 0.4911 GB, free: 7.148 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003573/0.3623, allocations: 2.659 MB / 0.4937 GB, free: 4.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3623, allocations: 0 / 0.4937 GB, free: 4.336 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.3646, allocations: 2.019 MB / 0.4957 GB, free: 2.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.3667, allocations: 0.5791 MB / 0.4962 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00609/0.3728, allocations: 5.728 MB / 0.5018 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009568/0.3738, allocations: 1.658 MB / 0.5035 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003089/0.3741, allocations: 167.4 kB / 0.5036 GB, free: 9.961 MB / 430.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3741, allocations: 0 / 0.5036 GB, free: 9.961 MB / 430.1 MB Notification: Performance of Templates: time 0.2076/0.5817, allocations: 153.6 MB / 0.6536 GB, free: 41.78 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches