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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 51.91 kB / 365.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09717, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004304/0.1015, allocations: 2.909 MB / 420.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.1026, allocations: 0.6777 MB / 421.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1027, allocations: 11.94 kB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.1029, allocations: 55.44 kB / 421.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.1031, allocations: 87.19 kB / 421.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.1033, allocations: 95.81 kB / 421.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.1038, allocations: 374.4 kB / 422 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.104, allocations: 113.4 kB / 422.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1042, allocations: 147.5 kB / 422.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.1044, allocations: 155.2 kB / 422.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.1044, allocations: 32 kB / 422.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.004e-05/0.1045, allocations: 32 kB / 422.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/0.1045, allocations: 75.75 kB / 422.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1047, allocations: 171.2 kB / 422.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004274/0.1051, allocations: 374.4 kB / 423.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1051, allocations: 4 kB / 423.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1051, allocations: 0 / 423.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1051, allocations: 0 / 423.1 MB, free: 7.281 MB / 350.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.001017/0.1062, allocations: 0.6156 MB / 423.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.1062, allocations: 8.031 kB / 423.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.569e-05/0.1063, allocations: 78.66 kB / 423.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.897e-05/0.1064, allocations: 40.7 kB / 423.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/0.1067, allocations: 267.8 kB / 424.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.1068, allocations: 21.03 kB / 424.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.1068, allocations: 40.33 kB / 424.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.1074, allocations: 274.2 kB / 424.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1074, allocations: 0 / 424.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1074, allocations: 12 kB / 424.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1074, allocations: 8 kB / 424.4 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/0.1079, allocations: 210.4 kB / 424.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.1094, allocations: 0.9755 MB / 425.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.1097, allocations: 160.9 kB / 425.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.1099, allocations: 72.83 kB / 425.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.1099, allocations: 4 kB / 425.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.11, allocations: 34.56 kB / 425.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.11, allocations: 0 / 425.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005744/0.1105, allocations: 213.7 kB / 426.1 MB, free: 4.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1106, allocations: 51.41 kB / 426.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.1108, allocations: 218.9 kB / 426.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.1109, allocations: 33.7 kB / 426.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.111, allocations: 192.4 kB / 426.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.111, allocations: 63.44 kB / 426.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.1111, allocations: 45.7 kB / 426.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1113, allocations: 330.8 kB / 427 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.1114, allocations: 59.97 kB / 427 MB, free: 3.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.1116, allocations: 118 kB / 427.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.112, allocations: 193.7 kB / 427.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.112, allocations: 3.938 kB / 427.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004795/0.1125, allocations: 237.3 kB / 427.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.1125, allocations: 11.98 kB / 427.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1125, allocations: 4.125 kB / 427.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1126, allocations: 4 kB / 427.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.1128, allocations: 63.91 kB / 427.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1128, allocations: 0 / 427.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.113, allocations: 31.83 kB / 427.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.113, allocations: 4 kB / 427.7 MB, free: 2.34 MB / 350.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.0001521/0.1132, allocations: 146.3 kB / 427.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/0.1132, allocations: 23.86 kB / 427.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.1136, allocations: 193.8 kB / 428.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1137, allocations: 4 kB / 428.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1137, allocations: 0 / 428.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1137, allocations: 0 / 428.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004072/0.1141, allocations: 321.4 kB / 428.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1141, allocations: 0 / 428.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.1144, allocations: 55.91 kB / 428.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1144, allocations: 7.938 kB / 428.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.1144, allocations: 4 kB / 428.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1144, allocations: 0 / 428.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1144, allocations: 0 / 428.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006559/0.115, allocations: 351.2 kB / 428.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.679e-05/0.1151, allocations: 100.9 kB / 428.9 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.1152, allocations: 4.062 kB / 428.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.1153, allocations: 19.98 kB / 428.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.1154, allocations: 11.98 kB / 428.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.1154, allocations: 4 kB / 428.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.1155, allocations: 152.4 kB / 429.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1155, allocations: 0 / 429.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.1159, allocations: 75.78 kB / 429.1 MB, free: 0.8008 MB / 350.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.001035/0.1169, allocations: 0.9012 MB / 430 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004128/0.1173, allocations: 152 kB / 430.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1173, allocations: 4 kB / 430.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.1175, allocations: 75.89 kB / 430.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.1179, allocations: 18.41 kB / 430.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.1216, allocations: 2.705 MB / 433 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.122, allocations: 0.7632 MB / 433.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.747e-05/0.1221, allocations: 29.92 kB / 433.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.1223, allocations: 95.41 kB / 433.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1223, allocations: 0 / 433.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02829/0.1505, allocations: 4.571 MB / 438.4 MB, free: 7.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.39, allocations: 12.12 kB / 438.5 MB, free: 7.426 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/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) [Timeout 660] "Error: Could not read variable sineVoltage.phi in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.359399574808776]