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.001684/0.001684, allocations: 108.2 kB / 16.62 MB, free: 6.961 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.002014/0.002014, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.51/1.51, allocations: 222.9 MB / 241.2 MB, free: 13.69 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 49.11 kB / 300.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1092, allocations: 49.44 MB / 349.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005347/0.1145, allocations: 2.916 MB / 352.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.1161, allocations: 0.6739 MB / 353.3 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003626/0.1165, allocations: 7.938 kB / 353.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.1168, allocations: 43.69 kB / 353.3 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.1171, allocations: 75.39 kB / 353.4 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1174, allocations: 71.92 kB / 353.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.1179, allocations: 382.4 kB / 353.8 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/0.1182, allocations: 153.3 kB / 354 MB, free: 68 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.1185, allocations: 147.6 kB / 354.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.1187, allocations: 151.3 kB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.074e-05/0.1188, allocations: 32 kB / 354.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.533e-05/0.1189, allocations: 32 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.749e-05/0.1189, allocations: 71.75 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.1191, allocations: 171.1 kB / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.1195, allocations: 370.9 kB / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1195, allocations: 0 / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1195, allocations: 4 kB / 355 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.1196, allocations: 3.938 kB / 355 MB, free: 15.1 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.001085/0.1207, allocations: 0.616 MB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1207, allocations: 8.031 kB / 355.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.428e-05/0.1208, allocations: 74.66 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.582e-05/0.1209, allocations: 40.47 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1212, allocations: 259.8 kB / 356 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1213, allocations: 21.03 kB / 356 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.1213, allocations: 32.38 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005473/0.1219, allocations: 274.2 kB / 356.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1219, allocations: 0 / 356.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.1219, allocations: 16 kB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.639e-06/0.1219, allocations: 8 kB / 356.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.1224, allocations: 202.5 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.1239, allocations: 0.9868 MB / 357.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.1242, allocations: 164.8 kB / 357.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.1244, allocations: 80.81 kB / 357.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.1244, allocations: 4 kB / 357.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.1244, allocations: 30.56 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.382e-06/0.1244, allocations: 0 / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005661/0.125, allocations: 221.6 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.1251, allocations: 51.41 kB / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.1253, allocations: 207 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.1253, allocations: 25.7 kB / 358.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1254, allocations: 188 kB / 358.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.1255, allocations: 67.09 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.1255, allocations: 45.61 kB / 358.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1257, allocations: 338.8 kB / 358.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.1258, allocations: 59.97 kB / 358.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.126, allocations: 110 kB / 359 MB, free: 10.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.1264, allocations: 197.7 kB / 359.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.1264, allocations: 3.938 kB / 359.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004533/0.1269, allocations: 241.3 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1269, allocations: 4 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1269, allocations: 4 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1269, allocations: 0 / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.1272, allocations: 67.83 kB / 359.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.1272, allocations: 4 kB / 359.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.1274, allocations: 31.67 kB / 359.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.1274, allocations: 8 kB / 359.6 MB, free: 10.18 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.0001403/0.1275, allocations: 149.8 kB / 359.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.64e-05/0.1276, allocations: 19.81 kB / 359.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004089/0.128, allocations: 187.4 kB / 359.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.128, allocations: 0 / 359.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.128, allocations: 0 / 359.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.128, allocations: 0 / 359.9 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.1284, allocations: 329.3 kB / 360.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1284, allocations: 0 / 360.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.1287, allocations: 55.91 kB / 360.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1287, allocations: 4 kB / 360.3 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1287, allocations: 8 kB / 360.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1287, allocations: 0 / 360.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1287, allocations: 48 / 360.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/0.1293, allocations: 351 kB / 360.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-05/0.1294, allocations: 100.9 kB / 360.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.1294, allocations: 4 kB / 360.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.1296, allocations: 15.98 kB / 360.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.1296, allocations: 11.98 kB / 360.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.1297, allocations: 4 kB / 360.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.1298, allocations: 148.6 kB / 360.9 MB, free: 8.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1298, allocations: 3.938 kB / 360.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.1301, allocations: 79.75 kB / 361 MB, free: 8.637 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.0008342/0.131, allocations: 0.8865 MB / 361.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000396/0.1314, allocations: 171.8 kB / 362.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1314, allocations: 0 / 362.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.1316, allocations: 75.89 kB / 362.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.1319, allocations: 27.06 kB / 362.2 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.1354, allocations: 2.824 MB / 365 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.1357, allocations: 0.771 MB / 365.8 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.62e-05/0.1358, allocations: 21.95 kB / 365.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.136, allocations: 95.41 kB / 365.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.136, allocations: 0 / 365.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1623/0.2983, allocations: 4.281 MB / 370.2 MB, free: 25.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.2985, allocations: 201.7 kB / 370.4 MB, free: 24.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.391, allocations: 3.406 kB / 370.4 MB, free: 24.84 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