Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009884/0.0009885, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 43.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2964, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.0046/0.301, allocations: 2.888 MB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.3023, allocations: 0.6621 MB / 403.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.3024, allocations: 11.94 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.3026, allocations: 59.44 kB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.3029, allocations: 91.19 kB / 404 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.3031, allocations: 87.83 kB / 404 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.3035, allocations: 382.4 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.3038, allocations: 149.3 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.304, allocations: 143.5 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.3042, allocations: 155.3 kB / 404.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.3042, allocations: 35.94 kB / 404.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.711e-05/0.3043, allocations: 32 kB / 404.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.05e-05/0.3043, allocations: 75.75 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.3045, allocations: 167.2 kB / 405.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000463/0.305, allocations: 389.3 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.305, allocations: 0 / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.305, allocations: 0 / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.305, allocations: 0 / 405.5 MB, free: 3.492 MB / 318.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.001045/0.3061, allocations: 0.6118 MB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.3061, allocations: 12.03 kB / 406.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.207e-05/0.3062, allocations: 70.72 kB / 406.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.834e-05/0.3063, allocations: 40.7 kB / 406.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.3067, allocations: 263.8 kB / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.3067, allocations: 29.02 kB / 406.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.191e-05/0.3068, allocations: 32.33 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.3073, allocations: 282.1 kB / 406.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3073, allocations: 3.938 kB / 406.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.3074, allocations: 20 kB / 406.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3074, allocations: 8 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.3078, allocations: 198.5 kB / 407.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.3092, allocations: 0.9716 MB / 408.1 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.3096, allocations: 166.6 kB / 408.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.3097, allocations: 80.81 kB / 408.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.3098, allocations: 0 / 408.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.3098, allocations: 34.56 kB / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.002e-06/0.3098, allocations: 0 / 408.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005299/0.3103, allocations: 213.7 kB / 408.5 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.3104, allocations: 59.39 kB / 408.6 MB, free: 212 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.3106, allocations: 207.1 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.3106, allocations: 29.7 kB / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.3107, allocations: 192.3 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.038e-05/0.3108, allocations: 75.41 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-05/0.3108, allocations: 49.7 kB / 409.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.311, allocations: 326.8 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3112, allocations: 71.89 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.3113, allocations: 110 kB / 409.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.3117, allocations: 193.8 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3117, allocations: 3.938 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004436/0.3121, allocations: 245.3 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3122, allocations: 4 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3122, allocations: 0 / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.3122, allocations: 4 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.3125, allocations: 59.91 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3125, allocations: 7.984 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.3127, allocations: 23.84 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.3127, allocations: 12 kB / 410.2 MB, free: 14.54 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.3128, allocations: 149.8 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.319e-05/0.3129, allocations: 19.86 kB / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003836/0.3133, allocations: 187.4 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3133, allocations: 7.984 kB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3133, allocations: 0 / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3133, allocations: 7.922 kB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003208/0.3136, allocations: 317.4 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3136, allocations: 0 / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.3139, allocations: 55.95 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3139, allocations: 0 / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3139, allocations: 7.938 kB / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.3139, allocations: 8 kB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.314, allocations: 0 / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005364/0.3145, allocations: 355.1 kB / 411.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.3146, allocations: 96.95 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.3146, allocations: 4.062 kB / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.3148, allocations: 15.98 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.3148, allocations: 15.97 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.3148, allocations: 4 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001193/0.315, allocations: 152.6 kB / 411.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.315, allocations: 0 / 411.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.3153, allocations: 71.78 kB / 411.6 MB, free: 12.99 MB / 334.1 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 (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.0008135/0.3161, allocations: 0.8942 MB / 412.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003921/0.3165, allocations: 163.8 kB / 412.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.3165, allocations: 0 / 412.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.3167, allocations: 71.91 kB / 412.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.317, allocations: 35.12 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.3201, allocations: 2.719 MB / 415.5 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.3204, allocations: 0.7671 MB / 416.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.374e-05/0.3205, allocations: 17.95 kB / 416.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3206, allocations: 99.34 kB / 416.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3206, allocations: 0 / 416.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.3406, allocations: 4.514 MB / 420.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/8.12, allocations: 12.88 kB / 420.9 MB, free: 3.656 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches