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.001917/0.001917, allocations: 117 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002265/0.002265, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 69.86 kB / 306.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09839, allocations: 50.53 MB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004431/0.1029, allocations: 2.944 MB / 360 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1045, allocations: 0.705 MB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.1048, allocations: 4 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.105, allocations: 47.62 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.1053, allocations: 79.38 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003127/0.1056, allocations: 71.94 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004374/0.1061, allocations: 374.5 kB / 361.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.1063, allocations: 149.3 kB / 361.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.1067, allocations: 147.5 kB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.1069, allocations: 167.2 kB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.107, allocations: 32 kB / 361.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.763e-05/0.1071, allocations: 32 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.789e-05/0.1071, allocations: 67.77 kB / 361.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1073, allocations: 167.1 kB / 362.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.1077, allocations: 382.9 kB / 362.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1077, allocations: 0 / 362.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1077, allocations: 0 / 362.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1077, allocations: 0 / 362.4 MB, free: 8.75 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.001045/0.1088, allocations: 0.6043 MB / 363 MB, free: 8.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.1088, allocations: 16.03 kB / 363 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.142e-05/0.1089, allocations: 62.73 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.109, allocations: 44.45 kB / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.1094, allocations: 259.8 kB / 363.4 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.1094, allocations: 33.03 kB / 363.4 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.1095, allocations: 32.31 kB / 363.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005902/0.1101, allocations: 274.2 kB / 363.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1101, allocations: 0 / 363.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.1101, allocations: 16 kB / 363.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.1102, allocations: 12 kB / 363.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004704/0.1106, allocations: 206.4 kB / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.1122, allocations: 0.979 MB / 364.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.1126, allocations: 162.6 kB / 365.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.1128, allocations: 84.75 kB / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1128, allocations: 0 / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.1128, allocations: 34.56 kB / 365.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.142e-06/0.1128, allocations: 0 / 365.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005575/0.1134, allocations: 216.8 kB / 365.4 MB, free: 5.543 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.1135, allocations: 55.41 kB / 365.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.1137, allocations: 210.8 kB / 365.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.1137, allocations: 29.7 kB / 365.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.1138, allocations: 184 kB / 365.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.002e-05/0.1139, allocations: 78.92 kB / 366 MB, free: 4.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.114, allocations: 45.7 kB / 366 MB, free: 4.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1141, allocations: 338.8 kB / 366.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.1143, allocations: 59.97 kB / 366.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.1145, allocations: 114 kB / 366.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003452/0.1149, allocations: 185.9 kB / 366.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1149, allocations: 3.938 kB / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004731/0.1154, allocations: 241.2 kB / 366.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.1154, allocations: 4 kB / 366.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1154, allocations: 7.984 kB / 367 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.1154, allocations: 0 / 367 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.1158, allocations: 59.91 kB / 367 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.1158, allocations: 4 kB / 367 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.116, allocations: 31.67 kB / 367 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.116, allocations: 12 kB / 367.1 MB, free: 3.816 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.0001784/0.1162, allocations: 150.9 kB / 367.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-05/0.1163, allocations: 15.81 kB / 367.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004488/0.1167, allocations: 187.5 kB / 367.4 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.1168, allocations: 3.938 kB / 367.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1168, allocations: 0 / 367.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1168, allocations: 0 / 367.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.1172, allocations: 333.2 kB / 367.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1172, allocations: 4 kB / 367.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.1175, allocations: 47.97 kB / 367.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1175, allocations: 3.938 kB / 367.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.1175, allocations: 8 kB / 367.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1175, allocations: 0 / 367.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1175, allocations: 0 / 367.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005928/0.1181, allocations: 361.2 kB / 368.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.436e-05/0.1182, allocations: 100.8 kB / 368.2 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.1183, allocations: 8.062 kB / 368.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.1184, allocations: 11.98 kB / 368.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.1185, allocations: 11.98 kB / 368.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.1185, allocations: 4.047 kB / 368.3 MB, free: 2.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.1187, allocations: 152.6 kB / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1187, allocations: 4 kB / 368.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.119, allocations: 67.75 kB / 368.5 MB, free: 2.273 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.0008954/0.1199, allocations: 0.892 MB / 369.4 MB, free: 1.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004433/0.1204, allocations: 167.8 kB / 369.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1204, allocations: 0 / 369.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.1206, allocations: 78.12 kB / 369.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.121, allocations: 28.19 kB / 369.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1514/0.2724, allocations: 2.804 MB / 372.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.2727, allocations: 0.7689 MB / 373.2 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.2728, allocations: 22 kB / 373.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.273, allocations: 95.2 kB / 373.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.273, allocations: 2.625 kB / 373.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.2919, allocations: 4.287 MB / 377.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/0.2921, allocations: 207.5 kB / 377.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.394, allocations: 4 kB / 377.8 MB, free: 17.59 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