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.001543/0.001543, allocations: 108 kB / 18.4 MB, free: 4.695 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.001832/0.001832, allocations: 186.3 kB / 19.33 MB, free: 3.773 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.321/1.321, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001202/0.001202, allocations: 44.31 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07805/0.07927, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1622/0.2415, allocations: 13.52 MB / 389.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02036/0.2619, allocations: 19.37 MB / 408.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002712/0.2647, allocations: 130.7 kB / 408.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0031/0.2678, allocations: 1.092 MB / 409.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00791/0.2758, allocations: 2.251 MB / 412.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004818/0.2806, allocations: 1.391 MB / 413.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.2907, allocations: 6.278 MB / 419.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007647/0.2915, allocations: 431.4 kB / 420.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.2931, allocations: 0.9995 MB / 421.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.2942, allocations: 1.06 MB / 422.3 MB, free: 152 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.2944, allocations: 75.78 kB / 422.4 MB, free: 152 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.2983, allocations: 1.161 MB / 423.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003046/0.2986, allocations: 325.6 kB / 423.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.2998, allocations: 1.336 MB / 425.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004377/0.3042, allocations: 3.705 MB / 428.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3043, allocations: 0 / 428.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3043, allocations: 4 kB / 428.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.098e-05/0.3043, allocations: 0 / 428.9 MB, free: 10.39 MB / 350.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.005027/0.3093, allocations: 3.592 MB / 432.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3094, allocations: 8.031 kB / 432.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000365/0.3098, allocations: 379.4 kB / 432.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.3132, allocations: 2.533 MB / 435.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.3132, allocations: 44.88 kB / 435.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.3134, allocations: 55.89 kB / 435.5 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.3148, allocations: 0.7538 MB / 436.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3148, allocations: 7.984 kB / 436.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.9e-05/0.3149, allocations: 20 kB / 436.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.3149, allocations: 19.98 kB / 436.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.3167, allocations: 0.8514 MB / 437.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.3212, allocations: 2.982 MB / 440.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.3229, allocations: 0.7949 MB / 440.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3244, allocations: 0.9525 MB / 441.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02885/0.3532, allocations: 30.12 MB / 472 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/0.3545, allocations: 0.6035 MB / 472.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.106e-06/0.3545, allocations: 0 / 472.6 MB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01245/0.3669, allocations: 5.23 MB / 477.8 MB, free: 4.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.367, allocations: 68.39 kB / 477.9 MB, free: 4.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.3706, allocations: 2.713 MB / 480.6 MB, free: 2.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.3708, allocations: 41.7 kB / 480.7 MB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.3718, allocations: 1.303 MB / 482 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003371/0.3722, allocations: 331.1 kB / 482.3 MB, free: 360 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003936/0.3726, allocations: 238.3 kB / 482.5 MB, free: 116 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3727, allocations: 345.9 kB / 482.9 MB, free: 15.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.374, allocations: 474 kB / 483.3 MB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.3754, allocations: 0.6509 MB / 484 MB, free: 14.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.3781, allocations: 1.133 MB / 485.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.3781, allocations: 3.938 kB / 485.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004065/0.3822, allocations: 1.976 MB / 487.1 MB, free: 11.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.3822, allocations: 11.94 kB / 487.1 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/0.3824, allocations: 132.9 kB / 487.2 MB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000699/0.3831, allocations: 264.4 kB / 487.5 MB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009108/0.384, allocations: 195.7 kB / 487.7 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009077/0.3931, allocations: 14.25 MB / 0.4902 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/0.3946, allocations: 87.89 kB / 0.4902 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.3948, allocations: 56.06 kB / 0.4903 GB, free: 10.93 MB / 430.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.0008652/0.3956, allocations: 429.6 kB / 0.4907 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005572/0.3962, allocations: 371.5 kB / 0.4911 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004838/0.401, allocations: 2.222 MB / 0.4932 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4011, allocations: 8 kB / 0.4932 GB, free: 7.824 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.4011, allocations: 4 kB / 0.4932 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.4011, allocations: 3.984 kB / 0.4932 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002341/0.4035, allocations: 1.551 MB / 0.4948 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001612/0.4036, allocations: 120 kB / 0.4949 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000745/0.4044, allocations: 135.8 kB / 0.495 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006236/0.405, allocations: 264.3 kB / 0.4953 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.4051, allocations: 51.92 kB / 0.4953 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009019/0.4142, allocations: 14.24 MB / 0.5092 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4142, allocations: 0 / 0.5092 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005545/0.4197, allocations: 2.551 MB / 0.5117 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.4208, allocations: 0.4888 MB / 0.5122 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004305/0.4213, allocations: 20 kB / 0.5122 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.4224, allocations: 79.89 kB / 0.5123 GB, free: 2.734 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.4227, allocations: 140.8 kB / 0.5124 GB, free: 2.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.4228, allocations: 51.98 kB / 0.5125 GB, free: 2.547 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002644/0.4255, allocations: 1.782 MB / 0.5142 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4255, allocations: 0 / 0.5142 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0017/0.4272, allocations: 0.6562 MB / 0.5148 GB, free: 104 kB / 446.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.001317/0.4285, allocations: 0.8165 MB / 0.5156 GB, free: 15.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00427/0.4328, allocations: 2.526 MB / 0.5181 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4328, allocations: 192 / 0.5181 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002615/0.4355, allocations: 1.952 MB / 0.52 GB, free: 10.49 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.4376, allocations: 0.517 MB / 0.5205 GB, free: 9.969 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00715/0.4448, allocations: 4.744 MB / 0.5252 GB, free: 5.188 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.4461, allocations: 1.662 MB / 0.5268 GB, free: 3.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004541/0.4466, allocations: 171.4 kB / 0.5269 GB, free: 3.332 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4466, allocations: 3.938 kB / 0.5269 GB, free: 3.328 MB / 462.1 MB Notification: Performance of Templates: time 0.2792/0.7258, allocations: 155.7 MB / 0.679 GB, free: 35.27 MB / 478.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches