Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.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.QuasiStatic.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_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.001591/0.001591, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001975/0.001975, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64.44 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08396, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.005141/0.08914, allocations: 3.688 MB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.09168, allocations: 1.487 MB / 362.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/0.09199, allocations: 8 kB / 362.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.09392, allocations: 0.7503 MB / 363.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.09502, allocations: 389.9 kB / 363.9 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.09623, allocations: 0.5591 MB / 364.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006061/0.09685, allocations: 458 kB / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007548/0.09761, allocations: 462.2 kB / 365.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003526/0.09798, allocations: 223.1 kB / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004239/0.09841, allocations: 271 kB / 365.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.09852, allocations: 44 kB / 365.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005042/0.09903, allocations: 219.8 kB / 366.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.09916, allocations: 111.6 kB / 366.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.09945, allocations: 242.8 kB / 366.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000889/0.1003, allocations: 0.6815 MB / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1004, allocations: 0 / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1004, allocations: 0 / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.1004, allocations: 0 / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002266/0.1027, allocations: 0.9209 MB / 368.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1027, allocations: 8.031 kB / 368.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.1029, allocations: 108 kB / 368.2 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003611/0.1065, allocations: 491.9 kB / 368.6 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.1069, allocations: 315.5 kB / 369 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.107, allocations: 45.67 kB / 369 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.243e-05/0.1071, allocations: 56.38 kB / 369.1 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009418/0.108, allocations: 0.5258 MB / 369.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.1081, allocations: 3.984 kB / 369.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.1081, allocations: 28 kB / 369.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.1081, allocations: 12 kB / 369.6 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.1092, allocations: 0.5751 MB / 370.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/0.2592, allocations: 1.961 MB / 372.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.2608, allocations: 2.173 MB / 374.3 MB, free: 16.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.2613, allocations: 260.7 kB / 374.6 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.505e-05/0.2614, allocations: 172.4 kB / 374.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.2614, allocations: 41.08 kB / 374.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.425e-06/0.2614, allocations: 0 / 374.8 MB, free: 16.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001701/0.2631, allocations: 0.7495 MB / 375.5 MB, free: 16.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/0.2632, allocations: 56.98 kB / 375.6 MB, free: 16.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.2633, allocations: 195.2 kB / 375.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.2634, allocations: 31.84 kB / 375.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.2635, allocations: 219.7 kB / 376 MB, free: 16.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/0.2636, allocations: 162.2 kB / 376.2 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.2637, allocations: 82.98 kB / 376.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.105e-05/0.2637, allocations: 340.5 kB / 376.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.264, allocations: 152.4 kB / 376.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003497/0.2644, allocations: 240.2 kB / 377 MB, free: 15.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005903/0.265, allocations: 415.3 kB / 377.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.265, allocations: 0 / 377.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009201/0.2659, allocations: 0.5382 MB / 377.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.266, allocations: 5.5 kB / 377.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.266, allocations: 2.75 kB / 377.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/0.2663, allocations: 84.22 kB / 378 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.2667, allocations: 95.25 kB / 378.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.2681, allocations: 1.77 MB / 379.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.2683, allocations: 49.27 kB / 379.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.2684, allocations: 19.61 kB / 380 MB, free: 13.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.2685, allocations: 171.3 kB / 380.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.2686, allocations: 34.06 kB / 380.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.2697, allocations: 0.5346 MB / 380.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2697, allocations: 9.156 kB / 380.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2697, allocations: 2.688 kB / 380.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.2697, allocations: 3.047 kB / 380.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.2712, allocations: 1.157 MB / 381.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2712, allocations: 4.062 kB / 381.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.2716, allocations: 78.88 kB / 381.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.2718, allocations: 82.47 kB / 382 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.2719, allocations: 7.641 kB / 382 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.2732, allocations: 1.78 MB / 383.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2732, allocations: 1.188 kB / 383.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.2744, allocations: 0.7965 MB / 384.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.2745, allocations: 102.8 kB / 384.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.12e-05/0.2745, allocations: 11.98 kB / 384.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.2747, allocations: 28.88 kB / 384.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.281e-05/0.2749, allocations: 32.84 kB / 384.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.2749, allocations: 16.17 kB / 384.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.47e-05/0.275, allocations: 130.4 kB / 384.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.275, allocations: 0 / 384.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005114/0.2755, allocations: 155.3 kB / 385.1 MB, free: 9.965 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001448/0.277, allocations: 1.381 MB / 386.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.2781, allocations: 0.5867 MB / 387 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2781, allocations: 0 / 387 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005396/0.2787, allocations: 385.8 kB / 387.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.2791, allocations: 31.64 kB / 387.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.2833, allocations: 3.437 MB / 390.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.2836, allocations: 0.8102 MB / 391.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002285/0.2838, allocations: 48.77 kB / 391.7 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.284, allocations: 133.1 kB / 391.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.284, allocations: 1.219 kB / 391.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0438/0.3278, allocations: 7.513 MB / 399.4 MB, free: 2.953 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.022/9.35, allocations: 10.81 kB / 399.4 MB, free: 2.945 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches