Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.001259, allocations: 120.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 215.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 63.89 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2359, allocations: 50.54 MB / 410.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003981/0.2399, allocations: 2.916 MB / 413.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2412, allocations: 0.705 MB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.2413, allocations: 11.94 kB / 413.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.2415, allocations: 59.38 kB / 413.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.2417, allocations: 95.19 kB / 414 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.242, allocations: 87.88 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.2424, allocations: 386.8 kB / 414.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2426, allocations: 120.5 kB / 414.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.2429, allocations: 151.5 kB / 414.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.2431, allocations: 163.3 kB / 414.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.2432, allocations: 32 kB / 414.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.041e-05/0.2432, allocations: 32 kB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.2433, allocations: 79.75 kB / 415 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001728/0.2434, allocations: 171.1 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.2439, allocations: 386.2 kB / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2439, allocations: 0 / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.2439, allocations: 0 / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.2439, allocations: 0 / 415.6 MB, free: 12.02 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.0009734/0.2449, allocations: 0.6236 MB / 416.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2449, allocations: 8.031 kB / 416.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.839e-05/0.245, allocations: 40.7 kB / 416.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.2453, allocations: 271.8 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.2454, allocations: 28.97 kB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.2454, allocations: 32.38 kB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.2459, allocations: 282.4 kB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.246, allocations: 0 / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.246, allocations: 12 kB / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.246, allocations: 8 kB / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.2465, allocations: 222.4 kB / 417.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.2481, allocations: 1.022 MB / 418.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.2484, allocations: 154.5 kB / 418.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.2487, allocations: 116.8 kB / 418.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.2487, allocations: 11.94 kB / 418.4 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.2487, allocations: 38.55 kB / 418.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.302e-06/0.2487, allocations: 0 / 418.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005752/0.2493, allocations: 217.8 kB / 418.6 MB, free: 8.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.2493, allocations: 55.41 kB / 418.7 MB, free: 8.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.2496, allocations: 219.1 kB / 418.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2496, allocations: 37.7 kB / 418.9 MB, free: 8.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.2497, allocations: 196.3 kB / 419.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/0.2498, allocations: 79.36 kB / 419.2 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.2499, allocations: 45.98 kB / 419.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.25, allocations: 334.8 kB / 419.6 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.2502, allocations: 64.53 kB / 419.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.2504, allocations: 147.4 kB / 419.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.2508, allocations: 217.2 kB / 420 MB, free: 7.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2508, allocations: 0 / 420 MB, free: 7.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005139/0.2513, allocations: 281.1 kB / 420.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.2513, allocations: 11.22 kB / 420.3 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.2513, allocations: 7.938 kB / 420.3 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2514, allocations: 4 kB / 420.3 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002952/0.2517, allocations: 72.16 kB / 420.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.2517, allocations: 11.97 kB / 420.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.2518, allocations: 31.78 kB / 420.4 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.2519, allocations: 12 kB / 420.4 MB, free: 6.863 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001326/0.252, allocations: 137.8 kB / 420.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.252, allocations: 35.78 kB / 420.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/0.2525, allocations: 204.7 kB / 420.8 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2525, allocations: 3.984 kB / 420.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2525, allocations: 0 / 420.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2525, allocations: 4 kB / 420.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008465/0.2533, allocations: 0.5997 MB / 421.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2533, allocations: 0 / 421.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.2536, allocations: 64.02 kB / 421.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2536, allocations: 4 kB / 421.5 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.2536, allocations: 3.938 kB / 421.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.2536, allocations: 4 kB / 421.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2537, allocations: 0 / 421.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006209/0.2543, allocations: 372.6 kB / 421.8 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.478e-05/0.2543, allocations: 109 kB / 421.9 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.2544, allocations: 4 kB / 421.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.2546, allocations: 15.98 kB / 422 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.097e-05/0.2546, allocations: 19.92 kB / 422 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.2546, allocations: 4 kB / 422 MB, free: 5.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001457/0.2548, allocations: 160.7 kB / 422.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2548, allocations: 0 / 422.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.2551, allocations: 75.78 kB / 422.2 MB, free: 4.949 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001333/0.2552, allocations: 103.2 kB / 422.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004312/0.2557, allocations: 180 kB / 422.5 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2557, allocations: 4.062 kB / 422.5 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.2558, allocations: 71.91 kB / 422.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.2562, allocations: 32.59 kB / 422.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.2575, allocations: 0.8508 MB / 423.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.2579, allocations: 0.7675 MB / 424.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.03e-05/0.258, allocations: 21.95 kB / 424.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.2581, allocations: 19.44 kB / 424.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2581, allocations: 0 / 424.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of Templates: time 0.005581/0.2636, allocations: 2.104 MB / 426.4 MB, free: 0.75 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches