Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.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.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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009842/0.0009841, allocations: 195.3 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007813/0.0007813, allocations: 95.14 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002122/0.0002122, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 51.3 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09071/0.2787, allocations: 80.14 MB / 488.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.279, allocations: 75.95 kB / 488.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01311/0.2921, allocations: 5.154 MB / 494 MB, free: 6.191 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2921, allocations: 0 / 494 MB, free: 6.191 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.2922, allocations: 11.94 kB / 494 MB, free: 6.18 MB / 362.7 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.0007684/0.2929, allocations: 0.5653 MB / 494.6 MB, free: 5.559 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.293, allocations: 8.031 kB / 494.6 MB, free: 5.551 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.217e-05/0.2931, allocations: 32.56 kB / 494.7 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.2933, allocations: 275.6 kB / 494.9 MB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.2934, allocations: 25.03 kB / 494.9 MB, free: 5.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.2934, allocations: 28.38 kB / 495 MB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.2939, allocations: 278.6 kB / 495.2 MB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.294, allocations: 192 / 495.2 MB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.294, allocations: 19.94 kB / 495.3 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.294, allocations: 8 kB / 495.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004413/0.2945, allocations: 214.5 kB / 495.5 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.2959, allocations: 1.006 MB / 496.5 MB, free: 3.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.2962, allocations: 158.6 kB / 496.6 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.2964, allocations: 84.83 kB / 496.7 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.2964, allocations: 7.938 kB / 496.7 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.2965, allocations: 30.56 kB / 496.8 MB, free: 3.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.2965, allocations: 0 / 496.8 MB, free: 3.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005288/0.297, allocations: 240.3 kB / 497 MB, free: 3.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.2971, allocations: 55.41 kB / 497.1 MB, free: 2.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.2973, allocations: 206.8 kB / 497.3 MB, free: 2.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.2973, allocations: 33.7 kB / 497.3 MB, free: 2.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.2974, allocations: 188 kB / 497.5 MB, free: 2.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.529e-05/0.2974, allocations: 63.11 kB / 497.5 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.095e-05/0.2975, allocations: 11.94 kB / 497.5 MB, free: 2.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2976, allocations: 330.8 kB / 497.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.2978, allocations: 67.91 kB / 497.9 MB, free: 2.055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.2979, allocations: 126.9 kB / 498.1 MB, free: 1.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/0.2983, allocations: 193.5 kB / 498.2 MB, free: 1.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2983, allocations: 0 / 498.2 MB, free: 1.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004437/0.2987, allocations: 257.1 kB / 498.5 MB, free: 1.445 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2988, allocations: 4 kB / 498.5 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.2988, allocations: 0 / 498.5 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2988, allocations: 4 kB / 498.5 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.2991, allocations: 67.91 kB / 498.6 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2991, allocations: 3.938 kB / 498.6 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.2993, allocations: 35.89 kB / 498.6 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.2993, allocations: 11.98 kB / 498.6 MB, free: 1.32 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.2994, allocations: 137.8 kB / 498.8 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.2995, allocations: 31.59 kB / 498.8 MB, free: 1.145 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003921/0.2999, allocations: 197.7 kB / 499 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2999, allocations: 4 kB / 499 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2999, allocations: 0 / 499 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2999, allocations: 4 kB / 499 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.3002, allocations: 313.4 kB / 499.3 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3002, allocations: 3.938 kB / 499.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002701/0.3005, allocations: 63.84 kB / 499.4 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3005, allocations: 0 / 499.4 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3006, allocations: 12 kB / 499.4 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3006, allocations: 0 / 499.4 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3006, allocations: 0 / 499.4 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.3011, allocations: 363 kB / 499.7 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.3012, allocations: 108.8 kB / 499.8 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.3012, allocations: 0 / 499.8 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.3014, allocations: 20.03 kB / 499.9 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.3015, allocations: 7.938 kB / 499.9 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3015, allocations: 12 kB / 499.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001215/0.3016, allocations: 156.5 kB / 0.4883 GB, free: 15.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3016, allocations: 0 / 0.4883 GB, free: 15.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003173/0.302, allocations: 79.69 kB / 0.4884 GB, free: 15.74 MB / 378.7 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 (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.0001263/0.3021, allocations: 105.9 kB / 0.4885 GB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3025, allocations: 174.8 kB / 0.4887 GB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3025, allocations: 4 kB / 0.4887 GB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.3027, allocations: 79.89 kB / 0.4887 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.303, allocations: 40.11 kB / 0.4888 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.3043, allocations: 1.055 MB / 0.4898 GB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3046, allocations: 0.7676 MB / 0.4905 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/0.3047, allocations: 19.44 kB / 0.4906 GB, free: 13.44 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3047, allocations: 4 kB / 0.4906 GB, free: 13.43 MB / 378.7 MB Notification: Performance of Templates: time 0.004205/0.3089, allocations: 2.85 MB / 0.4934 GB, free: 10.6 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches