Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 55.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2307, allocations: 50.54 MB / 409.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003575/0.2343, allocations: 2.921 MB / 412.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.2354, allocations: 0.701 MB / 413.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2356, allocations: 4 kB / 413.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.2358, allocations: 63.38 kB / 413.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.236, allocations: 79.2 kB / 413.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.2362, allocations: 95.88 kB / 413.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.2366, allocations: 378.4 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2368, allocations: 153.3 kB / 414.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.237, allocations: 151.5 kB / 414.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.2372, allocations: 155.3 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.2373, allocations: 28 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.196e-05/0.2373, allocations: 32 kB / 414.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.008e-05/0.2374, allocations: 71.77 kB / 414.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.2375, allocations: 171.2 kB / 414.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.2379, allocations: 387.6 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2379, allocations: 0 / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2379, allocations: 0 / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.371e-06/0.2379, allocations: 8 kB / 415.3 MB, free: 12.26 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008443/0.2387, allocations: 0.6004 MB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.2388, allocations: 12.03 kB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.2388, allocations: 32.56 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.2392, allocations: 263.7 kB / 416.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.2392, allocations: 29.02 kB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.2392, allocations: 36.31 kB / 416.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.2398, allocations: 274.4 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2398, allocations: 0 / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.2398, allocations: 12 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.2398, allocations: 8 kB / 416.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004232/0.2403, allocations: 202.5 kB / 416.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.2416, allocations: 0.9713 MB / 417.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.2419, allocations: 162.6 kB / 417.9 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.2421, allocations: 83.47 kB / 418 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2421, allocations: 0 / 418 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.2422, allocations: 38.56 kB / 418 MB, free: 9.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.021e-06/0.2422, allocations: 3.938 kB / 418 MB, free: 9.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005312/0.2427, allocations: 217.5 kB / 418.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.2427, allocations: 55.41 kB / 418.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.2429, allocations: 214.7 kB / 418.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.243, allocations: 25.7 kB / 418.5 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.519e-05/0.2431, allocations: 192 kB / 418.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.2431, allocations: 63.09 kB / 418.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.736e-05/0.2432, allocations: 49.7 kB / 418.8 MB, free: 8.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2433, allocations: 330.8 kB / 419.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.2435, allocations: 63.95 kB / 419.2 MB, free: 8.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.2437, allocations: 121.9 kB / 419.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.244, allocations: 185.9 kB / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.244, allocations: 0 / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004402/0.2444, allocations: 249 kB / 419.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2445, allocations: 4 kB / 419.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2445, allocations: 4 kB / 419.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.2445, allocations: 3.938 kB / 419.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.2448, allocations: 60.08 kB / 419.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.2448, allocations: 11.94 kB / 419.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2449, allocations: 19.84 kB / 419.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.245, allocations: 8 kB / 419.8 MB, free: 7.426 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001161/0.2451, allocations: 153.6 kB / 420 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.2451, allocations: 23.66 kB / 420 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003919/0.2455, allocations: 189.8 kB / 420.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2456, allocations: 7.938 kB / 420.2 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2456, allocations: 4 kB / 420.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2456, allocations: 0 / 420.2 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003118/0.2459, allocations: 329.3 kB / 420.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2459, allocations: 0 / 420.5 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.2462, allocations: 51.91 kB / 420.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2462, allocations: 0 / 420.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.2462, allocations: 8 kB / 420.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2462, allocations: 0 / 420.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2462, allocations: 0 / 420.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.2468, allocations: 354.9 kB / 420.9 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.834e-05/0.2468, allocations: 96.97 kB / 421 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/0.2469, allocations: 4 kB / 421 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.2471, allocations: 15.98 kB / 421.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.2471, allocations: 15.98 kB / 421.1 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.2471, allocations: 4 kB / 421.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001169/0.2472, allocations: 152.5 kB / 421.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2473, allocations: 0 / 421.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.2476, allocations: 75.69 kB / 421.3 MB, free: 5.875 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.000117/0.2477, allocations: 103.2 kB / 421.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003829/0.2481, allocations: 159.8 kB / 421.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2481, allocations: 0 / 421.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.2483, allocations: 78.14 kB / 421.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.2486, allocations: 31.88 kB / 421.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.2498, allocations: 0.8519 MB / 422.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.2501, allocations: 0.7673 MB / 423.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.2502, allocations: 23.38 kB / 423.3 MB, free: 3.797 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2502, allocations: 0 / 423.3 MB, free: 3.797 MB / 334.1 MB Notification: Performance of Templates: time 0.004626/0.2548, allocations: 2.906 MB / 426.2 MB, free: 0.8984 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches