Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00253/0.002536, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.878/3.878, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001926/0.001926, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007928/0.0007943, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2728, allocations: 47.59 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.02702/0.2999, allocations: 4.405 MB / 378.9 MB, free: 11 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.3156, allocations: 1.443 MB / 380.4 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.3173, allocations: 23.81 kB / 380.4 MB, free: 9.535 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004959/0.3223, allocations: 103.1 kB / 380.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.3245, allocations: 243.1 kB / 380.8 MB, free: 9.195 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006203/0.3307, allocations: 295.6 kB / 381 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003048/0.3339, allocations: 0.761 MB / 381.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.3352, allocations: 342.3 kB / 382.1 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.3363, allocations: 310.5 kB / 382.4 MB, free: 7.492 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008665/0.3372, allocations: 357.9 kB / 382.8 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002472/0.3375, allocations: 40 kB / 382.8 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004687/0.3422, allocations: 55.94 kB / 382.9 MB, free: 7.047 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002932/0.3426, allocations: 155.2 kB / 383 MB, free: 6.895 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00045/0.3431, allocations: 197.1 kB / 383.2 MB, free: 6.695 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.345, allocations: 0.7793 MB / 384 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.345, allocations: 0 / 384 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.978e-06/0.345, allocations: 0 / 384 MB, free: 5.914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.953e-05/0.3451, allocations: 0 / 384 MB, free: 5.914 MB / 282.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.008005/0.3531, allocations: 1.126 MB / 385.1 MB, free: 4.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/0.3532, allocations: 12.03 kB / 385.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005037/0.3537, allocations: 126.4 kB / 385.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.3559, allocations: 0.5879 MB / 385.9 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.3561, allocations: 77.95 kB / 385.9 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002802/0.3563, allocations: 96 kB / 386 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008177/0.3645, allocations: 1.015 MB / 387 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.517e-05/0.3647, allocations: 7.938 kB / 387 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.3649, allocations: 44 kB / 387.1 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-05/0.3649, allocations: 28 kB / 387.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007412/0.3724, allocations: 0.5539 MB / 387.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6552/1.028, allocations: 5.522 MB / 393.2 MB, free: 16.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/1.029, allocations: 237.4 kB / 393.4 MB, free: 16.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002558/1.029, allocations: 94.25 kB / 393.5 MB, free: 16.24 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/1.029, allocations: 34.11 kB / 393.6 MB, free: 16.2 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 5.42e-06/1.029, allocations: 0 / 393.6 MB, free: 16.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.009173/1.039, allocations: 1.728 MB / 395.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/1.039, allocations: 85.27 kB / 395.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/1.041, allocations: 0.6328 MB / 396 MB, free: 15.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/1.041, allocations: 35.8 kB / 396 MB, free: 15.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/1.041, allocations: 0.6157 MB / 396.6 MB, free: 14.5 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/1.042, allocations: 145.5 kB / 396.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.833e-05/1.042, allocations: 10.19 kB / 396.8 MB, free: 14.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/1.042, allocations: 343.8 kB / 397.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008682/1.043, allocations: 149.9 kB / 397.3 MB, free: 14.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/1.044, allocations: 0.4931 MB / 397.8 MB, free: 13.51 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/1.045, allocations: 228.3 kB / 398 MB, free: 13.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.901e-05/1.045, allocations: 3.625 kB / 398 MB, free: 13.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003001/1.048, allocations: 0.6742 MB / 398.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/1.048, allocations: 14.09 kB / 398.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.165e-05/1.048, allocations: 15.19 kB / 398.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.277e-05/1.049, allocations: 23.59 kB / 398.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/1.05, allocations: 187 kB / 398.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.414e-05/1.051, allocations: 22.28 kB / 398.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/1.052, allocations: 37.48 kB / 399 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/1.052, allocations: 39.97 kB / 399 MB, free: 13.08 MB / 282.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 (94): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008058/1.053, allocations: 230.5 kB / 399.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/1.053, allocations: 74.59 kB / 399.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/1.053, allocations: 77.28 kB / 399.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/1.053, allocations: 5.234 kB / 399.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/1.053, allocations: 4.984 kB / 399.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/1.053, allocations: 2.297 kB / 399.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00543/1.059, allocations: 1.29 MB / 400.7 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/1.059, allocations: 1.469 kB / 400.7 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/1.06, allocations: 109.5 kB / 400.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.658e-05/1.06, allocations: 6.625 kB / 400.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-05/1.06, allocations: 8.984 kB / 400.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/1.06, allocations: 2.875 kB / 400.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.06, allocations: 0 / 400.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002534/1.063, allocations: 0.7283 MB / 401.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/1.063, allocations: 137 kB / 401.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001557/1.064, allocations: 8.312 kB / 401.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007479/1.064, allocations: 36.69 kB / 401.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/1.065, allocations: 21.66 kB / 401.7 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.355e-05/1.065, allocations: 17.34 kB / 401.8 MB, free: 11.48 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001241/1.066, allocations: 413.5 kB / 402.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.066, allocations: 0 / 402.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00193/1.068, allocations: 142.3 kB / 402.3 MB, free: 11.28 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002632/1.068, allocations: 104.4 kB / 402.4 MB, free: 11.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002164/1.07, allocations: 455.7 kB / 402.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/1.07, allocations: 0 / 402.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007542/1.071, allocations: 160.6 kB / 403 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009643/1.072, allocations: 60.81 kB / 403.1 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006969/1.079, allocations: 2.094 MB / 405.2 MB, free: 9.602 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/1.08, allocations: 1.023 MB / 406.2 MB, free: 8.887 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004977/1.081, allocations: 70.42 kB / 406.2 MB, free: 8.871 MB / 282.7 MB Notification: Performance of SimCode: time 2.405e-06/1.081, allocations: 1.438 kB / 406.2 MB, free: 8.871 MB / 282.7 MB Notification: Performance of Templates: time 0.03456/1.116, allocations: 8.855 MB / 415.1 MB, free: 5.059 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches