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/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.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/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 117 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 208.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.62 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.08945, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005892/0.09537, allocations: 5.386 MB / 364.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.09784, allocations: 1.52 MB / 365.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003294/0.09818, allocations: 27.81 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.09864, allocations: 217.8 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004235/0.09908, allocations: 194 kB / 366.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006934/0.09978, allocations: 415.4 kB / 366.6 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009807/0.1008, allocations: 1.122 MB / 367.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006015/0.1014, allocations: 0.4884 MB / 368.3 MB, free: 3.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004063/0.1018, allocations: 406.2 kB / 368.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003841/0.1022, allocations: 433.6 kB / 369.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.998e-05/0.1023, allocations: 80 kB / 369.2 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.1025, allocations: 107.9 kB / 369.3 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.1026, allocations: 207.1 kB / 369.5 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003824/0.103, allocations: 0.4971 MB / 370 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000916/0.104, allocations: 1.159 MB / 371.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.104, allocations: 4 kB / 371.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.104, allocations: 0 / 371.1 MB, free: 1.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.104, allocations: 0 / 371.1 MB, free: 1.031 MB / 302.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.1311/0.2351, allocations: 1.307 MB / 372.4 MB, free: 20.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2351, allocations: 8.938 kB / 372.4 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003653/0.2355, allocations: 141.8 kB / 372.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.2365, allocations: 0.6674 MB / 373.2 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.2366, allocations: 72.44 kB / 373.3 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.2367, allocations: 104.6 kB / 373.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.2382, allocations: 1.028 MB / 374.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.2382, allocations: 6.656 kB / 374.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.2383, allocations: 48.89 kB / 374.5 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.998e-05/0.2383, allocations: 26.25 kB / 374.5 MB, free: 19.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.2394, allocations: 0.5571 MB / 375.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.2435, allocations: 5.484 MB / 380.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.244, allocations: 235.3 kB / 380.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.2443, allocations: 159.1 kB / 381 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.2444, allocations: 85.59 kB / 381 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.2444, allocations: 41.84 kB / 381.1 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.2444, allocations: 0 / 381.1 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0035/0.2479, allocations: 1.712 MB / 382.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.248, allocations: 82.7 kB / 382.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000655/0.2486, allocations: 0.6451 MB / 383.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.2486, allocations: 30.86 kB / 383.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.2489, allocations: 0.6043 MB / 384.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.444e-05/0.249, allocations: 148 kB / 384.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.2492, allocations: 133.6 kB / 384.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.2493, allocations: 389 kB / 384.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.2496, allocations: 153.9 kB / 385 MB, free: 11.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/0.2499, allocations: 0.493 MB / 385.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.2506, allocations: 0.6962 MB / 386.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.2506, allocations: 4.125 kB / 386.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001001/0.2516, allocations: 0.7141 MB / 386.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.2517, allocations: 10.09 kB / 386.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2517, allocations: 19.75 kB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.2517, allocations: 20.48 kB / 386.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/0.2523, allocations: 194.4 kB / 387.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/0.2524, allocations: 23.69 kB / 387.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.2527, allocations: 33.22 kB / 387.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.2528, allocations: 40.27 kB / 387.2 MB, free: 9.988 MB / 302.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.0002355/0.253, allocations: 239 kB / 387.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.913e-05/0.2531, allocations: 74.67 kB / 387.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.2532, allocations: 78.44 kB / 387.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2532, allocations: 4.312 kB / 387.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.2532, allocations: 1.25 kB / 387.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2533, allocations: 3.562 kB / 387.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.2551, allocations: 1.318 MB / 388.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2551, allocations: 3.203 kB / 388.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.2555, allocations: 102.2 kB / 389 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.2555, allocations: 3.5 kB / 389 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.2556, allocations: 17.8 kB / 389 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.2556, allocations: 7.922 kB / 389 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.2556, allocations: 1.906 kB / 389 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008117/0.2564, allocations: 0.703 MB / 389.7 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.991e-05/0.2565, allocations: 138.3 kB / 389.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.105e-05/0.2566, allocations: 16.39 kB / 389.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.2569, allocations: 25.78 kB / 389.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.47e-05/0.257, allocations: 26.45 kB / 389.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.257, allocations: 16.45 kB / 390 MB, free: 8.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004266/0.2574, allocations: 422.8 kB / 390.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2574, allocations: 0 / 390.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006098/0.2581, allocations: 136.9 kB / 390.5 MB, free: 8.148 MB / 302.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.0001038/0.2582, allocations: 117.2 kB / 390.6 MB, free: 8.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006724/0.2588, allocations: 434.1 kB / 391 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2589, allocations: 1.812 kB / 391 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002525/0.2591, allocations: 160.1 kB / 391.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.2596, allocations: 80.53 kB / 391.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.2618, allocations: 1.65 MB / 392.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.2622, allocations: 1.006 MB / 393.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.2624, allocations: 93.86 kB / 394 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.2626, allocations: 64.48 kB / 394.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2626, allocations: 4 kB / 394.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of Templates: time 0.009292/0.2719, allocations: 4.948 MB / 399 MB, free: 3.961 MB / 302.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches