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.001532/0.001531, allocations: 101.4 kB / 16.5 MB, free: 6.688 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.001467/0.001467, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.379/1.379, allocations: 222.9 MB / 241.1 MB, free: 13.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 51.08 kB / 300.1 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09645, allocations: 49.45 MB / 349.5 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004706/0.1012, allocations: 2.923 MB / 352.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1027, allocations: 0.6661 MB / 353.1 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003077/0.103, allocations: 8 kB / 353.1 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.1033, allocations: 43.62 kB / 353.2 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.1036, allocations: 75.44 kB / 353.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1039, allocations: 75.88 kB / 353.3 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.1044, allocations: 358.4 kB / 353.7 MB, free: 392 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.1047, allocations: 132.9 kB / 353.8 MB, free: 256 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002816/0.105, allocations: 135.5 kB / 353.9 MB, free: 120 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.1053, allocations: 151.3 kB / 354.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.1053, allocations: 20 kB / 354.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1054, allocations: 24 kB / 354.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.1055, allocations: 67.69 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.1057, allocations: 159.2 kB / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003257/0.106, allocations: 358.9 kB / 354.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.106, allocations: 0 / 354.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.106, allocations: 0 / 354.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.106, allocations: 0 / 354.7 MB, free: 15.35 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.001001/0.107, allocations: 0.6122 MB / 355.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1071, allocations: 16.03 kB / 355.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.206e-05/0.1072, allocations: 70.66 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.463e-05/0.1073, allocations: 40.47 kB / 355.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.1076, allocations: 251.8 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.1076, allocations: 21.03 kB / 355.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.1077, allocations: 36.38 kB / 355.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005509/0.1082, allocations: 274.2 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1082, allocations: 0 / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.1083, allocations: 16 kB / 356 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.1083, allocations: 12 kB / 356 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004682/0.1088, allocations: 210.4 kB / 356.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.1103, allocations: 0.979 MB / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.1107, allocations: 169.3 kB / 357.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.1109, allocations: 76.83 kB / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.1109, allocations: 3.938 kB / 357.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.1109, allocations: 34.56 kB / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.1109, allocations: 0 / 357.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000574/0.1115, allocations: 213.6 kB / 357.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1115, allocations: 55.41 kB / 357.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.1118, allocations: 207 kB / 357.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.1118, allocations: 25.7 kB / 358 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1119, allocations: 192 kB / 358.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.742e-05/0.1119, allocations: 63.11 kB / 358.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.112, allocations: 45.61 kB / 358.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1122, allocations: 338.8 kB / 358.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.1123, allocations: 63.91 kB / 358.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.1125, allocations: 117.9 kB / 358.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.1129, allocations: 189.8 kB / 358.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1129, allocations: 3.938 kB / 359 MB, free: 10.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004698/0.1134, allocations: 241.2 kB / 359.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1134, allocations: 7.984 kB / 359.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1134, allocations: 0 / 359.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1134, allocations: 4 kB / 359.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.1137, allocations: 59.91 kB / 359.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1138, allocations: 7.984 kB / 359.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1139, allocations: 31.67 kB / 359.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.1139, allocations: 16.12 kB / 359.3 MB, free: 10.41 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.0001303/0.1141, allocations: 145.7 kB / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.1141, allocations: 15.81 kB / 359.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004077/0.1145, allocations: 187.4 kB / 359.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1146, allocations: 4 kB / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1146, allocations: 4 kB / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1146, allocations: 0 / 359.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.1149, allocations: 329.3 kB / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1149, allocations: 0 / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.1152, allocations: 55.84 kB / 360 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1153, allocations: 0 / 360 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.1153, allocations: 4 kB / 360 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1153, allocations: 4 kB / 360 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1153, allocations: 0 / 360 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005743/0.1159, allocations: 353.8 kB / 360.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.116, allocations: 104.9 kB / 360.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.116, allocations: 8 kB / 360.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.1162, allocations: 11.98 kB / 360.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.1162, allocations: 11.98 kB / 360.5 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.1163, allocations: 4 kB / 360.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1164, allocations: 152.6 kB / 360.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1164, allocations: 0 / 360.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.1167, allocations: 71.75 kB / 360.7 MB, free: 8.883 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.0008674/0.1176, allocations: 0.8877 MB / 361.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003894/0.118, allocations: 164.2 kB / 361.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.118, allocations: 0 / 361.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1182, allocations: 75.89 kB / 361.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.1186, allocations: 31.56 kB / 361.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003603/0.1222, allocations: 2.818 MB / 364.7 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1226, allocations: 0.7712 MB / 365.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.1227, allocations: 13.95 kB / 365.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.1228, allocations: 95.41 kB / 365.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1228, allocations: 0 / 365.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1917/0.3145, allocations: 4.177 MB / 369.8 MB, free: 24.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/0.3147, allocations: 198 kB / 370 MB, free: 24.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.426, allocations: 1.625 kB / 370 MB, free: 24.04 MB / 302.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