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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 88.48 kB / 20.95 MB, free: 476 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002219/0.002219, allocations: 153.8 kB / 24.25 MB, free: 3.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 173.3 MB / 200.8 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 267.3 MB, free: 10.17 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.307e-05, allocations: 10.19 kB / 267.3 MB, free: 10.16 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01334/0.01336, allocations: 11.97 MB / 279.3 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.0372, allocations: 17.54 MB / 296.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.03945, allocations: 193.8 kB / 297 MB, free: 12.33 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.04257, allocations: 1.04 MB / 298 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007801/0.05037, allocations: 2.397 MB / 300.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004473/0.05485, allocations: 1.453 MB / 301.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.06577, allocations: 6.62 MB / 308.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006905/0.06646, allocations: 249 kB / 308.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1571/0.2236, allocations: 1.532 MB / 310.3 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.2251, allocations: 0.7833 MB / 311.1 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001974/0.2253, allocations: 74.41 kB / 311.1 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.2287, allocations: 1.203 MB / 312.3 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.229, allocations: 325.6 kB / 312.7 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.2301, allocations: 0.7153 MB / 313.4 MB, free: 21.51 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005031/0.2351, allocations: 3.69 MB / 317.1 MB, free: 21.22 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2351, allocations: 3.5 kB / 317.1 MB, free: 21.22 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.2351, allocations: 1.312 kB / 317.1 MB, free: 21.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.986e-05/0.2352, allocations: 0 / 317.1 MB, free: 21.22 MB / 286.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.006136/0.2413, allocations: 3.573 MB / 320.6 MB, free: 19.19 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2413, allocations: 10.52 kB / 320.7 MB, free: 19.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/0.2419, allocations: 432.3 kB / 321.1 MB, free: 18.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.2456, allocations: 2.723 MB / 323.8 MB, free: 18.14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.2457, allocations: 39.91 kB / 323.8 MB, free: 18.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.2458, allocations: 50.56 kB / 323.9 MB, free: 18.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.2472, allocations: 0.7593 MB / 324.7 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.2473, allocations: 0 / 324.7 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.2473, allocations: 21.25 kB / 324.7 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.2474, allocations: 17.91 kB / 324.7 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.2491, allocations: 0.8622 MB / 325.6 MB, free: 18.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005126/0.2542, allocations: 2.674 MB / 328.2 MB, free: 17.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.2557, allocations: 0.7177 MB / 328.9 MB, free: 17.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.257, allocations: 0.868 MB / 329.8 MB, free: 17.37 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02363/0.2806, allocations: 15.11 MB / 344.9 MB, free: 5.754 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.2817, allocations: 0.6029 MB / 345.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of pre-optimization done (n=96): time 3.096e-06/0.2817, allocations: 0 / 345.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=99): time 0.01146/0.2931, allocations: 4.554 MB / 350.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.2932, allocations: 68.39 kB / 350.1 MB, free: 484 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/0.297, allocations: 2.695 MB / 352.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.2972, allocations: 45.69 kB / 352.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.2986, allocations: 1.306 MB / 354.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004053/0.299, allocations: 343 kB / 354.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004795/0.2995, allocations: 238.4 kB / 354.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.2997, allocations: 345.9 kB / 355.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.3011, allocations: 478 kB / 355.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.3026, allocations: 0.6392 MB / 356.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002813/0.3054, allocations: 1.136 MB / 357.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3054, allocations: 0 / 357.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004731/0.3101, allocations: 1.874 MB / 359.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.3102, allocations: 4 kB / 359.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002218/0.3104, allocations: 120.5 kB / 359.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007867/0.3112, allocations: 278.3 kB / 359.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009633/0.3121, allocations: 194.5 kB / 359.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.3239, allocations: 13.01 MB / 372.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/0.326, allocations: 83.91 kB / 372.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.3262, allocations: 60.12 kB / 372.9 MB, free: 8.617 MB / 318.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.001057/0.3272, allocations: 431.8 kB / 373.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006879/0.3279, allocations: 417.6 kB / 373.8 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005625/0.3336, allocations: 2.044 MB / 375.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.3336, allocations: 12 kB / 375.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.3336, allocations: 4 kB / 375.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3336, allocations: 3.984 kB / 375.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3362, allocations: 1.306 MB / 377.1 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000191/0.3364, allocations: 112 kB / 377.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.3372, allocations: 142.8 kB / 377.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00073/0.3379, allocations: 264 kB / 377.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.338, allocations: 43.98 kB / 377.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/0.3498, allocations: 12.99 MB / 390.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3498, allocations: 0 / 390.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006287/0.3561, allocations: 2.436 MB / 393.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.3576, allocations: 455.3 kB / 393.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003498/0.3579, allocations: 20 kB / 393.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.359, allocations: 80.03 kB / 393.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004407/0.3595, allocations: 158.1 kB / 393.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/0.3596, allocations: 47.97 kB / 393.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002829/0.3624, allocations: 1.77 MB / 395.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3624, allocations: 8 kB / 395.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00175/0.3642, allocations: 0.6518 MB / 396.3 MB, free: 232 kB / 334.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.001429/0.3656, allocations: 0.8613 MB / 397.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004648/0.3703, allocations: 2.45 MB / 399.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3703, allocations: 4.062 kB / 399.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002945/0.3732, allocations: 1.895 MB / 401.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.376, allocations: 0.6463 MB / 402.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007297/0.3833, allocations: 4.651 MB / 406.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.3844, allocations: 1.104 MB / 407.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001124/0.3856, allocations: 387.4 kB / 408.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/0.3859, allocations: 172.5 kB / 408.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3859, allocations: 0 / 408.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of Templates: time 0.07322/0.4591, allocations: 39.01 MB / 447.5 MB, free: 13.48 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.237973514944315]