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.001547/0.001547, allocations: 105.8 kB / 16.62 MB, free: 6.812 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.001749/0.001749, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.279/1.279, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008976/0.0008976, allocations: 51.42 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08134, allocations: 49.44 MB / 349.6 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01222/0.09359, allocations: 14.05 MB / 363.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1586/0.2522, allocations: 20.15 MB / 383.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.2536, allocations: 61.59 kB / 383.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002579/0.2563, allocations: 0.9848 MB / 384.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006506/0.2628, allocations: 1.956 MB / 386.8 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004363/0.2672, allocations: 1.266 MB / 388 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008491/0.2757, allocations: 6.489 MB / 394.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.2763, allocations: 424.8 kB / 394.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.2777, allocations: 1.074 MB / 396 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009276/0.2786, allocations: 1.078 MB / 397.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.2788, allocations: 77 kB / 397.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.2826, allocations: 1.487 MB / 398.7 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.2828, allocations: 323.2 kB / 399 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009122/0.2838, allocations: 1.335 MB / 400.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003497/0.2873, allocations: 3.636 MB / 403.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2873, allocations: 4 kB / 403.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2873, allocations: 0 / 403.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.608e-05/0.2873, allocations: 4 kB / 404 MB, free: 14.77 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.004824/0.2922, allocations: 3.562 MB / 407.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2922, allocations: 8.031 kB / 407.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004125/0.2926, allocations: 379.4 kB / 407.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.296, allocations: 2.54 MB / 410.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.2961, allocations: 33 kB / 410.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.2962, allocations: 55.89 kB / 410.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.2977, allocations: 0.7615 MB / 411.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.2978, allocations: 3.984 kB / 411.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.362e-05/0.2978, allocations: 20 kB / 411.3 MB, free: 7.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.2979, allocations: 20.8 kB / 411.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.2997, allocations: 0.8514 MB / 412.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004665/0.3044, allocations: 2.974 MB / 415.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.3061, allocations: 0.787 MB / 415.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.3076, allocations: 0.9644 MB / 416.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02893/0.3365, allocations: 30.06 MB / 447 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001229/0.3378, allocations: 0.5943 MB / 447.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.3378, allocations: 4 kB / 447.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01204/0.3499, allocations: 5.225 MB / 452.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.3499, allocations: 64.41 kB / 452.8 MB, free: 9.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003091/0.353, allocations: 2.704 MB / 455.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.361e-05/0.3531, allocations: 41.7 kB / 455.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.3542, allocations: 1.303 MB / 456.9 MB, free: 5.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/0.3545, allocations: 331.2 kB / 457.2 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.3548, allocations: 238.3 kB / 457.4 MB, free: 4.613 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.355, allocations: 341.9 kB / 457.8 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3562, allocations: 485.9 kB / 458.3 MB, free: 3.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.3575, allocations: 0.654 MB / 458.9 MB, free: 3.082 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/0.3601, allocations: 1.126 MB / 460 MB, free: 1.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3601, allocations: 0 / 460 MB, free: 1.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003963/0.3641, allocations: 1.984 MB / 462 MB, free: 15.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3641, allocations: 8 kB / 462 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001555/0.3643, allocations: 116 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000698/0.365, allocations: 268.6 kB / 462.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008915/0.3659, allocations: 195.6 kB / 462.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009318/0.3752, allocations: 14.25 MB / 476.8 MB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.3767, allocations: 91.95 kB / 476.9 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.3768, allocations: 56 kB / 477 MB, free: 15.44 MB / 398.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.0007877/0.3776, allocations: 424.1 kB / 477.4 MB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003763/0.378, allocations: 367.5 kB / 477.8 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005183/0.3832, allocations: 2.214 MB / 480 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.3832, allocations: 11.98 kB / 480 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.3832, allocations: 4 kB / 480 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.3832, allocations: 3.984 kB / 480 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.385, allocations: 1.543 MB / 481.5 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001534/0.3852, allocations: 116 kB / 481.6 MB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000758/0.3859, allocations: 135.8 kB / 481.8 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006907/0.3866, allocations: 268.3 kB / 482 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.953e-05/0.3867, allocations: 51.86 kB / 482.1 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00895/0.3957, allocations: 14.25 MB / 496.3 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3957, allocations: 4.031 kB / 496.3 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005391/0.4011, allocations: 2.539 MB / 498.9 MB, free: 7.867 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008442/0.402, allocations: 496.5 kB / 499.4 MB, free: 7.359 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.4023, allocations: 20 kB / 499.4 MB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009892/0.4033, allocations: 83.89 kB / 499.5 MB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003561/0.4037, allocations: 140.8 kB / 499.6 MB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.4038, allocations: 48.12 kB / 499.7 MB, free: 7.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002206/0.406, allocations: 1.774 MB / 0.4897 GB, free: 5.293 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.406, allocations: 4 kB / 0.4897 GB, free: 5.289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001451/0.4075, allocations: 0.6483 MB / 0.4903 GB, free: 4.641 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.001196/0.4087, allocations: 0.8161 MB / 0.4911 GB, free: 3.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004326/0.413, allocations: 2.545 MB / 0.4936 GB, free: 1.117 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.413, allocations: 0 / 0.4936 GB, free: 1.117 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002487/0.4155, allocations: 1.949 MB / 0.4955 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.418, allocations: 0.6404 MB / 0.4961 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007465/0.4255, allocations: 5.492 MB / 0.5015 GB, free: 8.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.4266, allocations: 1.654 MB / 0.5031 GB, free: 7.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001512/0.4282, allocations: 391.3 kB / 0.5035 GB, free: 6.773 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.4285, allocations: 171.4 kB / 0.5036 GB, free: 6.605 MB / 430.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4285, allocations: 4 kB / 0.5036 GB, free: 6.602 MB / 430.1 MB Notification: Performance of Templates: time 0.2004/0.6289, allocations: 36.68 MB / 0.5395 GB, free: 147.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/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