Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008564/0.0008564, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003594/0.003594, allocations: 158 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8485/0.8485, allocations: 177 MB / 204.9 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.417e-06/3.417e-06, allocations: 3.984 kB / 325.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.515e-05, allocations: 3.266 kB / 325.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007517/0.007542, allocations: 12 MB / 337.8 MB, free: 3.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01791/0.02545, allocations: 17.58 MB / 355.3 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001956/0.02741, allocations: 189.8 kB / 355.5 MB, free: 1.395 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.0293, allocations: 1.04 MB / 356.6 MB, free: 356 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003889/0.03319, allocations: 2.405 MB / 359 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002275/0.03547, allocations: 1.437 MB / 360.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005143/0.04061, allocations: 6.706 MB / 367.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.04097, allocations: 249 kB / 367.4 MB, free: 5.48 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.04204, allocations: 1.547 MB / 368.9 MB, free: 3.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005907/0.04264, allocations: 0.7745 MB / 369.7 MB, free: 3.152 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.911e-05/0.04272, allocations: 72 kB / 369.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.04441, allocations: 1.213 MB / 371 MB, free: 1.867 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.04456, allocations: 329.7 kB / 371.3 MB, free: 1.543 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004387/0.045, allocations: 0.7164 MB / 372 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002623/0.04763, allocations: 3.686 MB / 375.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.04763, allocations: 0 / 375.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.04763, allocations: 0 / 375.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.04765, allocations: 0 / 375.7 MB, free: 13.12 MB / 346.7 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.002656/0.05031, allocations: 3.578 MB / 379.3 MB, free: 9.488 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.05034, allocations: 11.98 kB / 379.3 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.05058, allocations: 393.5 kB / 379.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.05287, allocations: 2.378 MB / 382 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.05289, allocations: 37 kB / 382.1 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.277e-05/0.05297, allocations: 51.94 kB / 382.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008336/0.05381, allocations: 0.7538 MB / 382.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.05382, allocations: 0 / 382.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.05386, allocations: 23.98 kB / 382.9 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.05387, allocations: 20 kB / 382.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009689/0.05484, allocations: 0.8631 MB / 383.8 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.05752, allocations: 2.667 MB / 386.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000927/0.05844, allocations: 0.7363 MB / 387.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008349/0.05928, allocations: 0.8715 MB / 388.1 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/0.07298, allocations: 13.66 MB / 401.7 MB, free: 2.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00068/0.07366, allocations: 0.5957 MB / 402.3 MB, free: 1.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.154e-06/0.07366, allocations: 0 / 402.3 MB, free: 1.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006075/0.07973, allocations: 4.521 MB / 406.8 MB, free: 13.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.07977, allocations: 60.41 kB / 406.9 MB, free: 13.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/0.08172, allocations: 2.704 MB / 409.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-05/0.08177, allocations: 49.69 kB / 409.6 MB, free: 10.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007059/0.08248, allocations: 1.304 MB / 410.9 MB, free: 9.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.08266, allocations: 345 kB / 411.3 MB, free: 8.797 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.08287, allocations: 242.4 kB / 411.5 MB, free: 8.555 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.565e-05/0.08295, allocations: 345.9 kB / 411.9 MB, free: 8.211 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006589/0.08361, allocations: 481.9 kB / 412.3 MB, free: 7.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007219/0.08433, allocations: 0.6431 MB / 413 MB, free: 7.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.08571, allocations: 1.137 MB / 414.1 MB, free: 5.832 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.08572, allocations: 0 / 414.1 MB, free: 5.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002343/0.08806, allocations: 1.831 MB / 415.9 MB, free: 3.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.08808, allocations: 12 kB / 416 MB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.968e-05/0.08817, allocations: 116 kB / 416.1 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004422/0.08861, allocations: 268.4 kB / 416.3 MB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.08903, allocations: 191.7 kB / 416.5 MB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005441/0.09447, allocations: 12.97 MB / 429.5 MB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005839/0.09505, allocations: 92.02 kB / 429.6 MB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.948e-05/0.09513, allocations: 60 kB / 429.6 MB, free: 5.227 MB / 394.7 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.0005022/0.09563, allocations: 417.7 kB / 430 MB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.09585, allocations: 397.5 kB / 430.4 MB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002577/0.09843, allocations: 2.047 MB / 432.5 MB, free: 2.324 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.862e-06/0.09843, allocations: 12 kB / 432.5 MB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.09844, allocations: 11.94 kB / 432.5 MB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.09845, allocations: 3.984 kB / 432.5 MB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.09949, allocations: 1.305 MB / 433.8 MB, free: 0.9609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.8e-05/0.09957, allocations: 112 kB / 433.9 MB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.09989, allocations: 135.8 kB / 434 MB, free: 0.7188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003262/0.1002, allocations: 260.3 kB / 434.3 MB, free: 444 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.304e-05/0.1003, allocations: 51.92 kB / 434.4 MB, free: 392 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005012/0.1053, allocations: 12.97 MB / 447.3 MB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1053, allocations: 0 / 447.3 MB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1806/0.2859, allocations: 2.398 MB / 449.7 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/0.2878, allocations: 434.8 kB / 450.1 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004651/0.2882, allocations: 19.56 kB / 450.2 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007965/0.289, allocations: 79.62 kB / 450.2 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004668/0.2895, allocations: 147.8 kB / 450.4 MB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.2896, allocations: 47.78 kB / 450.4 MB, free: 115.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002857/0.2925, allocations: 1.77 MB / 452.2 MB, free: 115.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2925, allocations: 3.531 kB / 452.2 MB, free: 115.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001407/0.2939, allocations: 0.6587 MB / 452.9 MB, free: 115.5 MB / 410.7 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.0009706/0.2948, allocations: 0.8637 MB / 453.7 MB, free: 115.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002141/0.297, allocations: 2.445 MB / 456.2 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.297, allocations: 0.8906 kB / 456.2 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.2981, allocations: 1.902 MB / 458.1 MB, free: 113 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.2995, allocations: 0.6185 MB / 458.7 MB, free: 113 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.3029, allocations: 4.607 MB / 463.3 MB, free: 109.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.3034, allocations: 1.099 MB / 464.4 MB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.3036, allocations: 172.5 kB / 464.6 MB, free: 108.7 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3036, allocations: 7.938 kB / 464.6 MB, free: 108.7 MB / 410.7 MB Notification: Performance of Templates: time 0.2228/0.5264, allocations: 155.8 MB / 0.6059 GB, free: 157.6 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.205368450842798]