Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 202 kB / 18.73 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.496/1.496, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2852, allocations: 50.56 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00431/0.2896, allocations: 2.916 MB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.2908, allocations: 0.7011 MB / 412.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.2909, allocations: 11.94 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.2911, allocations: 59.38 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.2913, allocations: 91.17 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.2916, allocations: 91.83 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.292, allocations: 366.5 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.2923, allocations: 169.3 kB / 413.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.2926, allocations: 143.5 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.2928, allocations: 155.3 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.2929, allocations: 36 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.2929, allocations: 32 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.293, allocations: 75.73 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.2932, allocations: 163.2 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.2937, allocations: 381.3 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2937, allocations: 4 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2937, allocations: 0 / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.2937, allocations: 0 / 414.2 MB, free: 12.09 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.001048/0.2948, allocations: 0.6079 MB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.2948, allocations: 12.03 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.924e-05/0.2949, allocations: 66.72 kB / 414.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.498e-05/0.295, allocations: 40.7 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.2955, allocations: 267.8 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.2955, allocations: 29.03 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.2956, allocations: 36.31 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005693/0.2962, allocations: 278.2 kB / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.2962, allocations: 0 / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.2962, allocations: 12 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2962, allocations: 8 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.2967, allocations: 202.5 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.2983, allocations: 0.9678 MB / 416.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.2986, allocations: 170.6 kB / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.2988, allocations: 72.83 kB / 416.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.2989, allocations: 0 / 416.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.2989, allocations: 42.5 kB / 417 MB, free: 9.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.072e-06/0.2989, allocations: 4 kB / 417 MB, free: 9.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006003/0.2995, allocations: 216.6 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.2996, allocations: 55.41 kB / 417.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.2998, allocations: 218.7 kB / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.2998, allocations: 29.7 kB / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.3, allocations: 192.4 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.221e-05/0.3, allocations: 71.38 kB / 417.8 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.3001, allocations: 53.7 kB / 417.8 MB, free: 8.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.3003, allocations: 330.8 kB / 418.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.3005, allocations: 63.97 kB / 418.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.3007, allocations: 118 kB / 418.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.3011, allocations: 189.8 kB / 418.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3011, allocations: 3.938 kB / 418.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004776/0.3016, allocations: 241.3 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3016, allocations: 7.984 kB / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3016, allocations: 0 / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3016, allocations: 4 kB / 418.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.3019, allocations: 63.91 kB / 418.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3019, allocations: 4 kB / 418.8 MB, free: 7.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.3021, allocations: 28.05 kB / 418.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.3021, allocations: 11.98 kB / 418.8 MB, free: 7.137 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.0001532/0.3023, allocations: 145.7 kB / 419 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.3023, allocations: 19.86 kB / 419 MB, free: 6.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004474/0.3028, allocations: 197.5 kB / 419.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3028, allocations: 4 kB / 419.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.3028, allocations: 0 / 419.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.3028, allocations: 4 kB / 419.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.3032, allocations: 321.4 kB / 419.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3032, allocations: 0 / 419.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.3035, allocations: 51.97 kB / 419.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.3035, allocations: 0 / 419.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.3035, allocations: 0 / 419.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.3035, allocations: 4 kB / 419.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3035, allocations: 3.938 kB / 419.6 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006285/0.3042, allocations: 355.1 kB / 419.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.919e-05/0.3043, allocations: 100.9 kB / 420 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.3043, allocations: 4.062 kB / 420 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.3045, allocations: 19.98 kB / 420.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.3045, allocations: 7.984 kB / 420.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.3045, allocations: 4 kB / 420.1 MB, free: 5.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.3047, allocations: 156.6 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3047, allocations: 0 / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.305, allocations: 71.78 kB / 420.3 MB, free: 5.602 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.0009584/0.306, allocations: 0.8944 MB / 421.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004182/0.3064, allocations: 163.8 kB / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3064, allocations: 0 / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.3066, allocations: 71.89 kB / 421.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.307, allocations: 36.45 kB / 421.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.3106, allocations: 2.715 MB / 424.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.311, allocations: 0.7632 MB / 424.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.612e-05/0.3111, allocations: 17.94 kB / 424.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.3112, allocations: 99.41 kB / 425 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3112, allocations: 0 / 425 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.3395, allocations: 4.516 MB / 429.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.973/8.313, allocations: 3.984 kB / 429.6 MB, free: 12.27 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches