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.001869/0.001869, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.002301/0.002302, allocations: 192 kB / 18 MB, free: 5.102 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.452/1.452, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2968, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004369/0.3012, allocations: 2.887 MB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.3024, allocations: 0.666 MB / 403.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.3026, allocations: 7.938 kB / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002143/0.3029, allocations: 63.38 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000171/0.303, allocations: 87.2 kB / 404 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.3033, allocations: 91.88 kB / 404.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004022/0.3037, allocations: 382.3 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.304, allocations: 149.3 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.3043, allocations: 147.5 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.3045, allocations: 155.3 kB / 404.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.3045, allocations: 32 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.656e-05/0.3046, allocations: 32 kB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.3047, allocations: 67.77 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.3048, allocations: 171.2 kB / 405.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.3053, allocations: 381.4 kB / 405.5 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3053, allocations: 4 kB / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3053, allocations: 3.938 kB / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3053, allocations: 0 / 405.5 MB, free: 3.5 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.001011/0.3063, allocations: 0.6196 MB / 406.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3064, allocations: 8.031 kB / 406.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.501e-05/0.3065, allocations: 74.72 kB / 406.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.775e-05/0.3066, allocations: 36.7 kB / 406.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003533/0.3069, allocations: 259.9 kB / 406.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.307, allocations: 21.03 kB / 406.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.307, allocations: 36.33 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.3076, allocations: 274.2 kB / 406.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3076, allocations: 0 / 406.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.3076, allocations: 16 kB / 406.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.3076, allocations: 12 kB / 406.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004617/0.3081, allocations: 202.5 kB / 407.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.3097, allocations: 0.9794 MB / 408.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.31, allocations: 162.6 kB / 408.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.3102, allocations: 84.81 kB / 408.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.3102, allocations: 0 / 408.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3103, allocations: 34.56 kB / 408.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.3103, allocations: 0 / 408.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005958/0.3109, allocations: 216.5 kB / 408.5 MB, free: 296 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.3109, allocations: 59.34 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.3112, allocations: 214.9 kB / 408.8 MB, free: 0 / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.3112, allocations: 25.7 kB / 408.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.3114, allocations: 192.4 kB / 409 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.006e-05/0.3114, allocations: 67.44 kB / 409.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.3115, allocations: 45.7 kB / 409.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3117, allocations: 334.8 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.3119, allocations: 67.89 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.3121, allocations: 117.9 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.3124, allocations: 197.8 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.3125, allocations: 3.938 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004711/0.3129, allocations: 241.3 kB / 410.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.313, allocations: 4.125 kB / 410.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.313, allocations: 8 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.313, allocations: 3.938 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3133, allocations: 55.97 kB / 410.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.3133, allocations: 7.938 kB / 410.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.3134, allocations: 27.83 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.3135, allocations: 8 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.000139/0.3136, allocations: 145.7 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.3137, allocations: 23.86 kB / 410.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004153/0.3141, allocations: 187.4 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3141, allocations: 0 / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3141, allocations: 0 / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3141, allocations: 3.984 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.3145, allocations: 321.4 kB / 410.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3145, allocations: 0 / 410.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.3148, allocations: 51.91 kB / 410.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3148, allocations: 4 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3148, allocations: 11.94 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3148, allocations: 3.984 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3148, allocations: 0 / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.3154, allocations: 347.2 kB / 411.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.93e-05/0.3155, allocations: 97.02 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.3156, allocations: 8 kB / 411.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.3157, allocations: 15.98 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.3158, allocations: 12.11 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.3158, allocations: 8 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.3159, allocations: 156.5 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.316, allocations: 0 / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003068/0.3163, allocations: 79.78 kB / 411.6 MB, free: 13 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.0009375/0.3172, allocations: 0.8904 MB / 412.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003975/0.3176, allocations: 160.2 kB / 412.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3176, allocations: 0 / 412.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3178, allocations: 75.89 kB / 412.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.3181, allocations: 27.97 kB / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.3216, allocations: 2.712 MB / 415.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004197/0.3221, allocations: 0.7671 MB / 416.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.336e-05/0.3222, allocations: 17.95 kB / 416.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.3223, allocations: 95.34 kB / 416.4 MB, free: 8.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3223, allocations: 0 / 416.4 MB, free: 8.094 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.3596, allocations: 4.523 MB / 420.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.374, allocations: 20.75 kB / 420.9 MB, free: 3.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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