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.001175/0.001176, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.00127, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.245, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003893/0.249, allocations: 2.92 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2504, allocations: 0.7049 MB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002927/0.2507, allocations: 8 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002596/0.251, allocations: 59.38 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002752/0.2513, allocations: 91.19 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.2517, allocations: 87.88 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.2521, allocations: 382.8 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.2525, allocations: 172.4 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.2528, allocations: 147.5 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.2531, allocations: 159.3 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.538e-05/0.2531, allocations: 36 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.873e-05/0.2532, allocations: 36 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.482e-05/0.2533, allocations: 75.75 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.2534, allocations: 171.1 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004344/0.2539, allocations: 389.3 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2539, allocations: 0 / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2539, allocations: 0 / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.2539, allocations: 0 / 414.2 MB, free: 12.12 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.0009775/0.2549, allocations: 0.6196 MB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2549, allocations: 12.03 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.096e-05/0.255, allocations: 66.72 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.605e-05/0.2551, allocations: 40.7 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.2555, allocations: 275.7 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.2555, allocations: 25.03 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.337e-05/0.2556, allocations: 36.36 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.2561, allocations: 282.2 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2562, allocations: 0 / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.2562, allocations: 12 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2562, allocations: 8 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.2567, allocations: 210.5 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2582, allocations: 1.026 MB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.2585, allocations: 166.5 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/0.2588, allocations: 131 kB / 417 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.2588, allocations: 4 kB / 417.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.2589, allocations: 38.56 kB / 417.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.393e-06/0.2589, allocations: 0 / 417.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005598/0.2595, allocations: 221.8 kB / 417.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.2595, allocations: 55.34 kB / 417.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.2597, allocations: 223 kB / 417.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.2598, allocations: 29.7 kB / 417.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2599, allocations: 200.4 kB / 417.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.2599, allocations: 75.36 kB / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.816e-05/0.26, allocations: 53.98 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.2601, allocations: 326.8 kB / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.2603, allocations: 68.52 kB / 418.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.2605, allocations: 143.4 kB / 418.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000372/0.2609, allocations: 229.1 kB / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2609, allocations: 0 / 418.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005015/0.2614, allocations: 277.1 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2614, allocations: 8 kB / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2615, allocations: 0 / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.2615, allocations: 4 kB / 419 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.2618, allocations: 71.89 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.2618, allocations: 8.188 kB / 419 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.262, allocations: 39.77 kB / 419.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.262, allocations: 16 kB / 419.1 MB, free: 6.867 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.0001707/0.2622, allocations: 141.7 kB / 419.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.2623, allocations: 27.8 kB / 419.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.2627, allocations: 198.8 kB / 419.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2627, allocations: 4 kB / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2627, allocations: 4 kB / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2627, allocations: 7.922 kB / 419.5 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/0.2636, allocations: 0.6001 MB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2636, allocations: 4 kB / 420.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.2639, allocations: 51.97 kB / 420.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2639, allocations: 4.062 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.264, allocations: 11.98 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.264, allocations: 0 / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.264, allocations: 3.938 kB / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.2646, allocations: 377.4 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.31e-05/0.2647, allocations: 100.9 kB / 420.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.2647, allocations: 8.062 kB / 420.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.2649, allocations: 15.98 kB / 420.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.931e-05/0.265, allocations: 11.98 kB / 420.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.265, allocations: 8 kB / 420.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.2651, allocations: 152.6 kB / 420.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2651, allocations: 4 kB / 420.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.2655, allocations: 79.78 kB / 420.9 MB, free: 4.957 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.000841/0.2663, allocations: 0.9134 MB / 421.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004017/0.2668, allocations: 183.3 kB / 422 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2668, allocations: 0 / 422 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.2669, allocations: 80.47 kB / 422.1 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.0003543/0.2673, allocations: 36.59 kB / 422.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.2709, allocations: 2.813 MB / 424.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.2713, allocations: 0.7713 MB / 425.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.38e-05/0.2714, allocations: 17.95 kB / 425.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.2715, allocations: 95.41 kB / 425.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2715, allocations: 0 / 425.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.2933, allocations: 4.643 MB / 430.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.947, allocations: 16.12 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.0.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