Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2664, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004647/0.2711, allocations: 2.908 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.2726, allocations: 0.701 MB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000267/0.2729, allocations: 8 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002536/0.2732, allocations: 59.42 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.2735, allocations: 95.19 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.2739, allocations: 91.77 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005237/0.2744, allocations: 378.9 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.2748, allocations: 176.4 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/0.2752, allocations: 143.6 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.2754, allocations: 167.2 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.2755, allocations: 32 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.366e-05/0.2756, allocations: 32 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.2756, allocations: 71.77 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.2758, allocations: 179.1 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005139/0.2764, allocations: 385.4 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2764, allocations: 0 / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2764, allocations: 4 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.2764, allocations: 0 / 414.2 MB, free: 12.11 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.001111/0.2775, allocations: 0.6196 MB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.2776, allocations: 8.031 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.2777, allocations: 74.66 kB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.313e-05/0.2778, allocations: 36.7 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.2783, allocations: 267.8 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.2783, allocations: 25.03 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.2784, allocations: 28.38 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.279, allocations: 290.2 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.279, allocations: 0 / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.279, allocations: 16 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.2791, allocations: 8 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004714/0.2795, allocations: 210.5 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.2813, allocations: 1.022 MB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.2816, allocations: 170.6 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.282, allocations: 136.3 kB / 417.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.282, allocations: 7.938 kB / 417.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.282, allocations: 30.56 kB / 417.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 3.697e-06/0.282, allocations: 4 kB / 417.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005974/0.2827, allocations: 220.2 kB / 417.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.2827, allocations: 55.41 kB / 417.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.283, allocations: 223 kB / 417.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.283, allocations: 29.7 kB / 417.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.2832, allocations: 196.4 kB / 417.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.539e-05/0.2832, allocations: 75.38 kB / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.963e-05/0.2833, allocations: 49.98 kB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.2835, allocations: 338.8 kB / 418.3 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.2837, allocations: 72.39 kB / 418.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.284, allocations: 143.4 kB / 418.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.2844, allocations: 225.1 kB / 418.7 MB, free: 7.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.2844, allocations: 4 kB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005604/0.285, allocations: 277.1 kB / 419 MB, free: 7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.285, allocations: 4 kB / 419 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.285, allocations: 4 kB / 419 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.285, allocations: 4 kB / 419 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.2854, allocations: 75.89 kB / 419 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.2854, allocations: 4 kB / 419 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.2856, allocations: 32.02 kB / 419.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.364e-05/0.2856, allocations: 16 kB / 419.1 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.0001883/0.2858, allocations: 145.7 kB / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.2859, allocations: 23.8 kB / 419.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004934/0.2864, allocations: 198.8 kB / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2864, allocations: 0 / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.2864, allocations: 0 / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2864, allocations: 0 / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009734/0.2874, allocations: 0.6092 MB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2874, allocations: 0 / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.2877, allocations: 55.91 kB / 420.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.2877, allocations: 0 / 420.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.2878, allocations: 8 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2878, allocations: 64 / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2878, allocations: 8 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.2885, allocations: 375.5 kB / 420.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.477e-05/0.2886, allocations: 105 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.2886, allocations: 12 kB / 420.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.2888, allocations: 16.11 kB / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.2889, allocations: 19.97 kB / 420.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.2889, allocations: 4 kB / 420.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002153/0.2891, allocations: 156.6 kB / 420.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2891, allocations: 0 / 420.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.2895, allocations: 79.78 kB / 420.9 MB, free: 4.953 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.001059/0.2906, allocations: 0.9017 MB / 421.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004641/0.291, allocations: 187.7 kB / 422 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2911, allocations: 0 / 422 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.2912, allocations: 79.89 kB / 422 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.2917, allocations: 45.14 kB / 422.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004095/0.2958, allocations: 2.817 MB / 424.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.2963, allocations: 0.7674 MB / 425.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.2964, allocations: 25.94 kB / 425.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.2966, allocations: 92 kB / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2966, allocations: 0 / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.3282, allocations: 4.639 MB / 430.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.285/8.614, allocations: 11.67 kB / 430.4 MB, free: 11.31 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches