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.001063/0.001063, allocations: 91.44 kB / 16.65 MB, free: 6.59 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.00125/0.00125, allocations: 185.2 kB / 17.57 MB, free: 6.203 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.306/1.306, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002554, allocations: 4 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.08903, allocations: 50.42 MB / 351.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01191/0.101, allocations: 13.52 MB / 365.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1883/0.2893, allocations: 20.21 MB / 385.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001867/0.2912, allocations: 71.59 kB / 385.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004106/0.2953, allocations: 0.9982 MB / 386.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.3069, allocations: 1.915 MB / 388.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007845/0.3148, allocations: 1.197 MB / 389.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.3249, allocations: 6.315 MB / 396.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006941/0.3256, allocations: 407.2 kB / 396.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3272, allocations: 1.021 MB / 397.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.3283, allocations: 1.055 MB / 398.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3284, allocations: 44.22 kB / 398.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.3328, allocations: 1.453 MB / 400 MB, free: 3.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002865/0.3331, allocations: 283.1 kB / 400.3 MB, free: 2.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.3344, allocations: 1.321 MB / 401.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004177/0.3386, allocations: 3.53 MB / 405.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3386, allocations: 0 / 405.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3386, allocations: 0 / 405.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.164e-05/0.3387, allocations: 4 kB / 405.2 MB, free: 15.84 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.00457/0.3433, allocations: 3.124 MB / 408.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3433, allocations: 8.031 kB / 408.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003667/0.3437, allocations: 379.4 kB / 408.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.3472, allocations: 2.544 MB / 411.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.3472, allocations: 40.98 kB / 411.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.3473, allocations: 51.94 kB / 411.3 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3489, allocations: 0.785 MB / 412.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3489, allocations: 4 kB / 412.1 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.368e-05/0.349, allocations: 20 kB / 412.1 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.349, allocations: 20.73 kB / 412.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.351, allocations: 0.9217 MB / 413 MB, free: 7.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.3559, allocations: 3.009 MB / 416 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.3577, allocations: 0.8567 MB / 416.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.3593, allocations: 0.9839 MB / 417.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03074/0.39, allocations: 30.1 MB / 448 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001409/0.3915, allocations: 0.6418 MB / 448.6 MB, free: 164 kB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.916e-06/0.3915, allocations: 0 / 448.6 MB, free: 164 kB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.0141/0.4056, allocations: 5.69 MB / 454.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/0.4057, allocations: 74.69 kB / 454.4 MB, free: 10.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004194/0.4099, allocations: 2.696 MB / 457.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.4101, allocations: 41.7 kB / 457.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.4113, allocations: 1.303 MB / 458.4 MB, free: 6.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.4117, allocations: 339.2 kB / 458.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.4118, allocations: 81.67 kB / 458.8 MB, free: 5.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.412, allocations: 345.9 kB / 459.2 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.4135, allocations: 0.5332 MB / 459.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.415, allocations: 0.7095 MB / 460.4 MB, free: 4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003136/0.4182, allocations: 1.258 MB / 461.7 MB, free: 2.676 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4182, allocations: 0 / 461.7 MB, free: 2.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004625/0.4228, allocations: 2.109 MB / 463.8 MB, free: 500 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.4229, allocations: 8.062 kB / 463.8 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/0.423, allocations: 116 kB / 463.9 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007112/0.4237, allocations: 276.3 kB / 464.2 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009802/0.4247, allocations: 227.7 kB / 464.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009359/0.4341, allocations: 13.26 MB / 477.7 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.4358, allocations: 124 kB / 477.8 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/0.4361, allocations: 64 kB / 477.8 MB, free: 1.082 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.001014/0.4371, allocations: 421.5 kB / 478.3 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006882/0.4378, allocations: 371.5 kB / 478.6 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005894/0.4437, allocations: 2.34 MB / 481 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.4437, allocations: 12 kB / 481 MB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.4438, allocations: 11.94 kB / 481 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.4438, allocations: 3.984 kB / 481 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.4464, allocations: 1.549 MB / 482.5 MB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001491/0.4465, allocations: 112 kB / 482.6 MB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008149/0.4473, allocations: 163.8 kB / 482.8 MB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000662/0.448, allocations: 268.3 kB / 483.1 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.4481, allocations: 43.98 kB / 483.1 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00961/0.4578, allocations: 13.25 MB / 496.4 MB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4578, allocations: 0 / 496.4 MB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006483/0.4643, allocations: 2.739 MB / 499.1 MB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.4654, allocations: 496.4 kB / 499.6 MB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006768/0.466, allocations: 16 kB / 499.6 MB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.4674, allocations: 115.9 kB / 499.7 MB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003863/0.4678, allocations: 137 kB / 499.8 MB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/0.468, allocations: 51.98 kB / 499.9 MB, free: 9.426 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003101/0.4711, allocations: 1.778 MB / 0.4899 GB, free: 7.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.4711, allocations: 0 / 0.4899 GB, free: 7.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001991/0.4731, allocations: 0.6444 MB / 0.4905 GB, free: 6.996 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.001481/0.4746, allocations: 0.8253 MB / 0.4914 GB, free: 6.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004642/0.4792, allocations: 2.643 MB / 0.4939 GB, free: 3.426 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4792, allocations: 0 / 0.4939 GB, free: 3.426 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.4821, allocations: 2.023 MB / 0.4959 GB, free: 1.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/0.4854, allocations: 0.5869 MB / 0.4965 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007995/0.4934, allocations: 5.662 MB / 0.502 GB, free: 10.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.4948, allocations: 1.658 MB / 0.5036 GB, free: 9.281 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001562/0.4964, allocations: 395.3 kB / 0.504 GB, free: 8.891 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003614/0.4967, allocations: 163.4 kB / 0.5042 GB, free: 8.73 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4968, allocations: 0 / 0.5042 GB, free: 8.73 MB / 430.1 MB Notification: Performance of Templates: time 0.2316/0.7284, allocations: 35.36 MB / 0.5387 GB, free: 144.7 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