Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 226.8 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001853/0.001853, allocations: 90.84 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 55.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2652, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006054/0.2713, allocations: 5.369 MB / 412.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.2751, allocations: 1.477 MB / 413.9 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001621/0.2768, allocations: 23.88 kB / 413.9 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009328/0.2778, allocations: 166.6 kB / 414.1 MB, free: 20.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.2792, allocations: 150.7 kB / 414.2 MB, free: 20.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.2804, allocations: 339.6 kB / 414.6 MB, free: 20.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.2819, allocations: 1.087 MB / 415.6 MB, free: 19.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008281/0.2828, allocations: 435.3 kB / 416.1 MB, free: 18.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009862/0.2838, allocations: 370.3 kB / 416.4 MB, free: 18.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004724/0.2843, allocations: 417.5 kB / 416.8 MB, free: 17.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2844, allocations: 60 kB / 416.9 MB, free: 17.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002547/0.2847, allocations: 83.92 kB / 417 MB, free: 17.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.2848, allocations: 179.2 kB / 417.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004241/0.2853, allocations: 488.9 kB / 417.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009869/0.2863, allocations: 1.029 MB / 418.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.2863, allocations: 0 / 418.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2863, allocations: 4 kB / 418.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.2863, allocations: 0 / 418.7 MB, free: 16.14 MB / 298.7 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.002167/0.2885, allocations: 1.309 MB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2886, allocations: 8.875 kB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003277/0.2889, allocations: 142.5 kB / 420.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007416/0.2897, allocations: 0.6107 MB / 420.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.857e-05/0.2897, allocations: 81.88 kB / 420.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.2898, allocations: 104 kB / 420.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.2914, allocations: 1.023 MB / 421.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.764e-05/0.2914, allocations: 7.922 kB / 421.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.718e-05/0.2915, allocations: 48 kB / 422 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.2915, allocations: 28 kB / 422 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009585/0.2925, allocations: 0.55 MB / 422.6 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003965/0.2965, allocations: 5.524 MB / 428.1 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005045/0.297, allocations: 248.9 kB / 428.3 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.2973, allocations: 161.6 kB / 428.5 MB, free: 5.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003083/0.2977, allocations: 85.09 kB / 428.6 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.2977, allocations: 42.56 kB / 428.6 MB, free: 5.617 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.085e-06/0.2977, allocations: 0 / 428.6 MB, free: 5.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003955/0.3017, allocations: 1.707 MB / 430.3 MB, free: 3.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.3018, allocations: 88.98 kB / 430.4 MB, free: 3.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006255/0.3024, allocations: 0.6294 MB / 431 MB, free: 3.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.3024, allocations: 37.7 kB / 431.1 MB, free: 3.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002771/0.3027, allocations: 0.6026 MB / 431.7 MB, free: 2.414 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.657e-05/0.3028, allocations: 141.9 kB / 431.8 MB, free: 2.273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.303, allocations: 142.5 kB / 432 MB, free: 2.129 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.3031, allocations: 382.8 kB / 432.3 MB, free: 1.746 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.3034, allocations: 153.9 kB / 432.5 MB, free: 1.598 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004374/0.3038, allocations: 493.1 kB / 433 MB, free: 0.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007788/0.3046, allocations: 0.7076 MB / 433.7 MB, free: 88 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.3046, allocations: 0 / 433.7 MB, free: 88 kB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001252/0.3059, allocations: 0.7107 MB / 434.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.3059, allocations: 12 kB / 434.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.306, allocations: 16 kB / 434.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.162e-05/0.306, allocations: 20 kB / 434.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006459/0.3067, allocations: 195.7 kB / 434.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-05/0.3067, allocations: 27.86 kB / 434.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004036/0.3071, allocations: 35.98 kB / 434.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.3072, allocations: 36 kB / 434.7 MB, free: 15.03 MB / 314.7 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.0003471/0.3075, allocations: 237.4 kB / 435 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.3077, allocations: 71.06 kB / 435 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001524/0.3078, allocations: 82.53 kB / 435.1 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3078, allocations: 4 kB / 435.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.3079, allocations: 3.938 kB / 435.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3079, allocations: 3.984 kB / 435.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.3101, allocations: 1.319 MB / 436.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3101, allocations: 0 / 436.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.3106, allocations: 107.8 kB / 436.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.946e-06/0.3107, allocations: 4 kB / 436.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.3107, allocations: 11.98 kB / 436.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.3107, allocations: 11.88 kB / 436.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3107, allocations: 4 kB / 436.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003462/0.3142, allocations: 2.489 MB / 439.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.3144, allocations: 136.2 kB / 439.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.886e-05/0.3144, allocations: 12 kB / 439.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.3148, allocations: 23.98 kB / 439.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3149, allocations: 31.95 kB / 439.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.3149, allocations: 12 kB / 439.3 MB, free: 10.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004945/0.3154, allocations: 423 kB / 439.7 MB, free: 9.809 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3154, allocations: 0 / 439.7 MB, free: 9.809 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009054/0.3163, allocations: 175.9 kB / 439.9 MB, free: 9.637 MB / 314.7 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.00021/0.3165, allocations: 116.2 kB / 440 MB, free: 9.512 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009284/0.3175, allocations: 426.1 kB / 440.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.3175, allocations: 0 / 440.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003072/0.3178, allocations: 159.7 kB / 440.5 MB, free: 8.941 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.3184, allocations: 68.39 kB / 440.6 MB, free: 8.879 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004014/0.3224, allocations: 2.355 MB / 443 MB, free: 6.469 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008698/0.3234, allocations: 1.012 MB / 444 MB, free: 5.426 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004092/0.3238, allocations: 98 kB / 444.1 MB, free: 5.328 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.324, allocations: 71.41 kB / 444.1 MB, free: 5.258 MB / 314.7 MB Notification: Performance of SimCode: time 6.592e-06/0.324, allocations: 0 / 444.1 MB, free: 5.258 MB / 314.7 MB Notification: Performance of Templates: time 0.01386/0.3379, allocations: 5.046 MB / 449.2 MB, free: 232 kB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches