Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002255/0.002255, allocations: 214.1 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 51.92 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2591, allocations: 53.36 MB / 432.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006936/0.266, allocations: 4.772 MB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003144/0.2692, allocations: 1.485 MB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000676/0.2698, allocations: 35.69 kB / 438.7 MB, free: 384 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006115/0.2705, allocations: 217.8 kB / 438.9 MB, free: 164 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008085/0.2713, allocations: 194.1 kB / 439.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.2723, allocations: 423.2 kB / 439.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.2739, allocations: 1.122 MB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006099/0.2745, allocations: 312.9 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006892/0.2752, allocations: 414.3 kB / 441.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005932/0.2758, allocations: 381.4 kB / 441.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.2759, allocations: 84 kB / 441.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002862/0.2762, allocations: 108 kB / 441.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.2764, allocations: 211.1 kB / 442.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004609/0.2769, allocations: 405.7 kB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.2782, allocations: 1.195 MB / 443.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2782, allocations: 0 / 443.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2782, allocations: 4 kB / 443.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.208e-05/0.2783, allocations: 0 / 443.7 MB, free: 11.32 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002571/0.2808, allocations: 1.267 MB / 444.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2809, allocations: 12.03 kB / 444.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005023/0.2814, allocations: 151.1 kB / 445.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.2827, allocations: 0.5782 MB / 445.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.376e-05/0.2828, allocations: 81.88 kB / 445.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.2829, allocations: 100 kB / 445.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.2848, allocations: 1.074 MB / 446.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.2848, allocations: 7.938 kB / 446.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.563e-05/0.2849, allocations: 44 kB / 447 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.2849, allocations: 24 kB / 447 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.2861, allocations: 0.5617 MB / 447.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005631/0.2917, allocations: 5.121 MB / 452.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006236/0.2924, allocations: 228.9 kB / 452.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.2927, allocations: 153.6 kB / 453 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.341e-05/0.2928, allocations: 8 kB / 453.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.2928, allocations: 42.5 kB / 453.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.994e-06/0.2928, allocations: 3.938 kB / 453.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004256/0.2971, allocations: 1.588 MB / 454.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.2971, allocations: 81.11 kB / 454.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008996/0.298, allocations: 0.6564 MB / 455.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.2981, allocations: 37.7 kB / 455.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.2986, allocations: 0.6201 MB / 456.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.2987, allocations: 154.8 kB / 456.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.2989, allocations: 134.6 kB / 456.4 MB, free: 14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.2991, allocations: 382.8 kB / 456.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.2995, allocations: 153.9 kB / 456.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007617/0.3002, allocations: 0.4892 MB / 457.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.3013, allocations: 0.7 MB / 458.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.3014, allocations: 4 kB / 458.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001563/0.3029, allocations: 0.7144 MB / 458.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.3029, allocations: 12 kB / 458.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.303, allocations: 12 kB / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.365e-05/0.303, allocations: 16.75 kB / 458.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000671/0.3037, allocations: 191.7 kB / 459 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.907e-05/0.3037, allocations: 31.8 kB / 459.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003973/0.3041, allocations: 35.98 kB / 459.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.3042, allocations: 40 kB / 459.1 MB, free: 10.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003438/0.3045, allocations: 221.5 kB / 459.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.3047, allocations: 83.48 kB / 459.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.3048, allocations: 74.62 kB / 459.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3048, allocations: 11.94 kB / 459.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3048, allocations: 3.938 kB / 459.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3048, allocations: 7.984 kB / 459.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.3071, allocations: 1.129 MB / 460.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3071, allocations: 4.031 kB / 460.7 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.3076, allocations: 103.9 kB / 460.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.719e-06/0.3076, allocations: 4 kB / 460.8 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-05/0.3076, allocations: 15.98 kB / 460.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.3076, allocations: 7.938 kB / 460.8 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3076, allocations: 0 / 460.8 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3088, allocations: 0.7052 MB / 461.5 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.3089, allocations: 71.52 kB / 461.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.309, allocations: 15.88 kB / 461.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3093, allocations: 23.98 kB / 461.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.3094, allocations: 31.89 kB / 461.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.3094, allocations: 11.98 kB / 461.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005525/0.31, allocations: 427 kB / 462.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.31, allocations: 0 / 462.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.3106, allocations: 136 kB / 462.2 MB, free: 7.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001416/0.3108, allocations: 107.1 kB / 462.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008894/0.3117, allocations: 418 kB / 462.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3117, allocations: 0 / 462.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.312, allocations: 151.1 kB / 462.9 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005385/0.3125, allocations: 75.23 kB / 462.9 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.3156, allocations: 1.726 MB / 464.6 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.3161, allocations: 413.4 kB / 465.1 MB, free: 4.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.3163, allocations: 71.41 kB / 465.1 MB, free: 4.719 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3163, allocations: 0 / 465.1 MB, free: 4.719 MB / 366.1 MB Notification: Performance of Templates: time 0.01547/0.3317, allocations: 9.718 MB / 474.8 MB, free: 10.99 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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: 7.6321330070495605]