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.001213/0.001213, allocations: 104.5 kB / 17.59 MB, free: 5.43 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.001372/0.001372, allocations: 191.6 kB / 18.52 MB, free: 4.508 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.479/1.479, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001125, allocations: 47.08 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.08707, allocations: 49.45 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01353/0.1006, allocations: 14.18 MB / 364.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1706/0.2713, allocations: 20.3 MB / 385.2 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002388/0.2738, allocations: 65.41 kB / 385.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003175/0.277, allocations: 1.117 MB / 386.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007645/0.2847, allocations: 2.289 MB / 388.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005216/0.2899, allocations: 1.44 MB / 390.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009897/0.2998, allocations: 6.398 MB / 396.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008833/0.3008, allocations: 432.5 kB / 396.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.3027, allocations: 1.046 MB / 398 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.3045, allocations: 1.077 MB / 399.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003115/0.3049, allocations: 76.84 kB / 399.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005193/0.3101, allocations: 1.477 MB / 400.6 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004803/0.3106, allocations: 324.8 kB / 400.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00177/0.3124, allocations: 1.331 MB / 402.3 MB, free: 404 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005633/0.318, allocations: 3.654 MB / 405.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.318, allocations: 0 / 405.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.3181, allocations: 0 / 405.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.667e-05/0.3181, allocations: 3.938 kB / 405.9 MB, free: 13.55 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.005257/0.3234, allocations: 3.566 MB / 409.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3234, allocations: 8.031 kB / 409.5 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004515/0.3239, allocations: 375.5 kB / 409.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003539/0.3274, allocations: 2.54 MB / 412.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.3275, allocations: 33 kB / 412.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.3276, allocations: 55.89 kB / 412.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.3291, allocations: 0.7616 MB / 413.3 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3291, allocations: 3.938 kB / 413.3 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.3292, allocations: 20 kB / 413.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.748e-05/0.3292, allocations: 19.98 kB / 413.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.3309, allocations: 0.8523 MB / 414.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004916/0.3359, allocations: 2.966 MB / 417.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/0.3376, allocations: 0.7987 MB / 417.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.3391, allocations: 0.9532 MB / 418.9 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.3678, allocations: 30.07 MB / 448.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/0.3689, allocations: 0.5957 MB / 449.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.176e-06/0.369, allocations: 0 / 449.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01242/0.3814, allocations: 5.229 MB / 454.8 MB, free: 8.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.3815, allocations: 64.41 kB / 454.8 MB, free: 8.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.3846, allocations: 2.7 MB / 457.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.3848, allocations: 41.7 kB / 457.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.3859, allocations: 1.307 MB / 458.9 MB, free: 3.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003478/0.3862, allocations: 335.2 kB / 459.2 MB, free: 3.613 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.3866, allocations: 234.2 kB / 459.4 MB, free: 3.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3867, allocations: 349.9 kB / 459.8 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.388, allocations: 476.7 kB / 460.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.3893, allocations: 0.6431 MB / 460.9 MB, free: 1.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002579/0.3919, allocations: 1.129 MB / 462 MB, free: 0.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3919, allocations: 4 kB / 462 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004139/0.3961, allocations: 1.976 MB / 464 MB, free: 14.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.3961, allocations: 4.531 kB / 464 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/0.3963, allocations: 120 kB / 464.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007018/0.397, allocations: 268.4 kB / 464.4 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008879/0.3979, allocations: 195.7 kB / 464.6 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008964/0.4069, allocations: 14.25 MB / 478.8 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4084, allocations: 91.95 kB / 478.9 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.4085, allocations: 60 kB / 479 MB, free: 14.2 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.0007928/0.4093, allocations: 417.7 kB / 479.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000433/0.4098, allocations: 375.4 kB / 479.7 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005065/0.4148, allocations: 2.216 MB / 481.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.4149, allocations: 12 kB / 482 MB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4149, allocations: 4 kB / 482 MB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.4149, allocations: 7.969 kB / 482 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.4169, allocations: 1.543 MB / 483.5 MB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001536/0.4171, allocations: 108 kB / 483.6 MB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007565/0.4178, allocations: 139.8 kB / 483.8 MB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006414/0.4185, allocations: 268.3 kB / 484 MB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.4186, allocations: 43.98 kB / 484.1 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/0.4299, allocations: 14.25 MB / 498.3 MB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.43, allocations: 0 / 498.3 MB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008819/0.4388, allocations: 2.543 MB / 0.4891 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/0.4404, allocations: 496.5 kB / 0.4896 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006076/0.441, allocations: 19.98 kB / 0.4896 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.4429, allocations: 83.89 kB / 0.4897 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005314/0.4434, allocations: 132.8 kB / 0.4898 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000174/0.4436, allocations: 51.98 kB / 0.4899 GB, free: 5.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004231/0.4478, allocations: 1.77 MB / 0.4916 GB, free: 4.062 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4479, allocations: 0 / 0.4916 GB, free: 4.062 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002947/0.4508, allocations: 0.6522 MB / 0.4922 GB, free: 3.41 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.001897/0.4528, allocations: 0.8082 MB / 0.493 GB, free: 2.598 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007102/0.4599, allocations: 2.545 MB / 0.4955 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.4599, allocations: 0 / 0.4955 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004103/0.4641, allocations: 1.96 MB / 0.4974 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/0.4684, allocations: 0.631 MB / 0.498 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.4787, allocations: 4.79 MB / 0.5027 GB, free: 8.316 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001702/0.4804, allocations: 1.658 MB / 0.5043 GB, free: 6.633 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007105/0.4812, allocations: 175.4 kB / 0.5045 GB, free: 6.461 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4812, allocations: 0 / 0.5045 GB, free: 6.461 MB / 430.1 MB Notification: Performance of Templates: time 0.3067/0.7879, allocations: 153.9 MB / 0.6548 GB, free: 34.98 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