Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009612/0.0009612, allocations: 199.5 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.248/1.248, allocations: 226.5 MB / 245.4 MB, free: 8.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000746/0.0007461, allocations: 102.6 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.000224, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1853, allocations: 51.3 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08778/0.2731, allocations: 80.13 MB / 488.8 MB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.2733, allocations: 67.97 kB / 488.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01305/0.2864, allocations: 5.21 MB / 494.1 MB, free: 6.207 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2864, allocations: 0 / 494.1 MB, free: 6.207 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.2865, allocations: 8 kB / 494.1 MB, free: 6.199 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.0007574/0.2872, allocations: 0.5653 MB / 494.6 MB, free: 5.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.2873, allocations: 11.97 kB / 494.6 MB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.21e-05/0.2873, allocations: 36.56 kB / 494.7 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.2876, allocations: 271.6 kB / 494.9 MB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2876, allocations: 21.03 kB / 495 MB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.779e-05/0.2877, allocations: 36.38 kB / 495 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.2882, allocations: 282.6 kB / 495.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2882, allocations: 192 / 495.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.2883, allocations: 15.94 kB / 495.3 MB, free: 4.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.2883, allocations: 8 kB / 495.3 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.2887, allocations: 226.5 kB / 495.5 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2903, allocations: 1.061 MB / 496.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.2906, allocations: 162.5 kB / 496.7 MB, free: 3.348 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.2909, allocations: 137.1 kB / 496.9 MB, free: 3.211 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.2909, allocations: 4 kB / 496.9 MB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.2909, allocations: 38.45 kB / 496.9 MB, free: 3.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.2909, allocations: 3.938 kB / 496.9 MB, free: 3.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005396/0.2915, allocations: 243.5 kB / 497.2 MB, free: 2.914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.2915, allocations: 59.36 kB / 497.2 MB, free: 2.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.2917, allocations: 215.1 kB / 497.4 MB, free: 2.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.2918, allocations: 29.7 kB / 497.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.2919, allocations: 192 kB / 497.6 MB, free: 2.395 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.237e-05/0.2919, allocations: 74.86 kB / 497.7 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.187e-05/0.292, allocations: 8 kB / 497.7 MB, free: 2.312 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2921, allocations: 330.8 kB / 498.1 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.2922, allocations: 72.52 kB / 498.1 MB, free: 1.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.2925, allocations: 147.4 kB / 498.3 MB, free: 1.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.2928, allocations: 241.1 kB / 498.5 MB, free: 1.469 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2928, allocations: 0 / 498.5 MB, free: 1.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004749/0.2933, allocations: 275.5 kB / 498.8 MB, free: 1.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2933, allocations: 7.938 kB / 498.8 MB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.2934, allocations: 7.938 kB / 498.8 MB, free: 1.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2934, allocations: 4 kB / 498.8 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.2937, allocations: 75.89 kB / 498.9 MB, free: 1.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.2937, allocations: 4 kB / 498.9 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.2938, allocations: 43.86 kB / 498.9 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.2939, allocations: 12 kB / 498.9 MB, free: 1.043 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.294, allocations: 141.7 kB / 499.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/0.2941, allocations: 27.66 kB / 499.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004106/0.2945, allocations: 214.2 kB / 499.3 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2945, allocations: 7.938 kB / 499.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2945, allocations: 0 / 499.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2945, allocations: 0 / 499.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000795/0.2953, allocations: 0.62 MB / 499.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2953, allocations: 0 / 499.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.2956, allocations: 55.97 kB / 500 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.2956, allocations: 0 / 500 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2956, allocations: 11.94 kB / 500 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2956, allocations: 0 / 500 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2956, allocations: 4.062 kB / 500 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.2962, allocations: 393.2 kB / 0.4887 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.058e-05/0.2963, allocations: 96.83 kB / 0.4887 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.2963, allocations: 8.062 kB / 0.4888 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.2965, allocations: 19.98 kB / 0.4888 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.451e-05/0.2966, allocations: 15.91 kB / 0.4888 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2966, allocations: 16 kB / 0.4888 GB, free: 15.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.2967, allocations: 144.7 kB / 0.4889 GB, free: 15.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2967, allocations: 0 / 0.4889 GB, free: 15.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000315/0.2971, allocations: 79.78 kB / 0.489 GB, free: 15.1 MB / 378.7 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 (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.0001334/0.2972, allocations: 115.2 kB / 0.4891 GB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003834/0.2976, allocations: 187.7 kB / 0.4893 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2976, allocations: 0 / 0.4893 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.2978, allocations: 88.45 kB / 0.4894 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.2981, allocations: 36.28 kB / 0.4894 GB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.2994, allocations: 1.076 MB / 0.4905 GB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2997, allocations: 0.7713 MB / 0.4912 GB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.2998, allocations: 19.44 kB / 0.4912 GB, free: 12.74 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2998, allocations: 4 kB / 0.4912 GB, free: 12.74 MB / 378.7 MB Notification: Performance of Templates: time 0.004121/0.3039, allocations: 2.923 MB / 0.4941 GB, free: 9.832 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches