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.001113/0.001113, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 64.14 kB / 306.4 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08473, allocations: 50.52 MB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003629/0.08839, allocations: 2.95 MB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.08948, allocations: 0.705 MB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.08963, allocations: 12 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.08982, allocations: 47.61 kB / 360.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.08997, allocations: 71.39 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.09021, allocations: 75.92 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.09053, allocations: 358.4 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002524/0.09079, allocations: 136.8 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.09104, allocations: 139.5 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.09121, allocations: 143.3 kB / 361.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.09126, allocations: 24 kB / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.79e-05/0.09131, allocations: 24 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.09138, allocations: 67.75 kB / 361.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.09151, allocations: 159.1 kB / 361.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.09182, allocations: 366.9 kB / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.09183, allocations: 0 / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.09184, allocations: 0 / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.09185, allocations: 4 kB / 362.1 MB, free: 9.168 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008639/0.09272, allocations: 0.6026 MB / 362.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.09277, allocations: 12.03 kB / 362.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.394e-05/0.09284, allocations: 66.72 kB / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/0.0929, allocations: 40.47 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/0.09318, allocations: 263.8 kB / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.09322, allocations: 28.95 kB / 363.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.09327, allocations: 32.38 kB / 363.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.09378, allocations: 286.1 kB / 363.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.0938, allocations: 0 / 363.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.09383, allocations: 12 kB / 363.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.09385, allocations: 8 kB / 363.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.09428, allocations: 198.5 kB / 363.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.09571, allocations: 0.9946 MB / 364.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.09602, allocations: 162.6 kB / 364.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.0962, allocations: 76.81 kB / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.09623, allocations: 0 / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.09626, allocations: 34.56 kB / 364.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.142e-06/0.09627, allocations: 8 kB / 364.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000535/0.09681, allocations: 209.6 kB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.09686, allocations: 55.41 kB / 365.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.09707, allocations: 210.8 kB / 365.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.0971, allocations: 29.7 kB / 365.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.09721, allocations: 188 kB / 365.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.09726, allocations: 71 kB / 365.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.09734, allocations: 45.7 kB / 365.7 MB, free: 5.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.09747, allocations: 326.8 kB / 366 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.09763, allocations: 67.89 kB / 366.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.09784, allocations: 118 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.09817, allocations: 181.8 kB / 366.4 MB, free: 4.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.09819, allocations: 7.938 kB / 366.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004424/0.09864, allocations: 229.2 kB / 366.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.09867, allocations: 10.5 kB / 366.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.09868, allocations: 0 / 366.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.0987, allocations: 4 kB / 366.6 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.09898, allocations: 67.89 kB / 366.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.099, allocations: 4 kB / 366.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.09915, allocations: 31.81 kB / 366.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.09918, allocations: 8 kB / 366.8 MB, free: 4.246 MB / 302.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.0001716/0.09936, allocations: 146.8 kB / 366.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.513e-05/0.09941, allocations: 15.81 kB / 366.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004276/0.09984, allocations: 195.3 kB / 367.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.09986, allocations: 4 kB / 367.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.09987, allocations: 4 kB / 367.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.09988, allocations: 0 / 367.1 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003727/0.1003, allocations: 325.3 kB / 367.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1003, allocations: 0 / 367.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.1006, allocations: 55.97 kB / 367.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.1006, allocations: 0 / 367.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.1006, allocations: 7.938 kB / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1006, allocations: 0 / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1006, allocations: 4 kB / 367.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005651/0.1012, allocations: 353.6 kB / 367.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.272e-05/0.1013, allocations: 108.8 kB / 367.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.1013, allocations: 0 / 367.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.1015, allocations: 15.98 kB / 368 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.1015, allocations: 11.98 kB / 368 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1016, allocations: 12 kB / 368 MB, free: 2.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001197/0.1017, allocations: 144.6 kB / 368.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1017, allocations: 4 kB / 368.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.102, allocations: 71.75 kB / 368.2 MB, free: 2.699 MB / 302.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.0008022/0.1028, allocations: 0.8802 MB / 369.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003894/0.1032, allocations: 159.8 kB / 369.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1032, allocations: 0 / 369.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.1034, allocations: 78.14 kB / 369.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.1038, allocations: 32.33 kB / 369.3 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1442/0.248, allocations: 2.807 MB / 372.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.2482, allocations: 0.7723 MB / 372.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.2484, allocations: 23.84 kB / 372.9 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.2485, allocations: 96.48 kB / 373 MB, free: 18.43 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2485, allocations: 0 / 373 MB, free: 18.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.2635, allocations: 4.173 MB / 377.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/0.2636, allocations: 205.5 kB / 377.4 MB, free: 17.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/1.989, allocations: 1.094 kB / 377.4 MB, free: 17.86 MB / 302.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.0.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