Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.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.001348/0.001348, allocations: 119 kB / 17.78 MB, free: 5.25 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.00136/0.00136, allocations: 193.2 kB / 20.73 MB, free: 2.312 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.459/1.459, allocations: 225.6 MB / 249.1 MB, free: 3.586 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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 51.92 kB / 365.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003459/0.115, allocations: 2.003 MB / 419.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.116, allocations: 0.5726 MB / 420.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.1161, allocations: 7.938 kB / 420.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.1163, allocations: 35.59 kB / 420.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.358e-05/0.1164, allocations: 51.58 kB / 420.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.1166, allocations: 55.88 kB / 420.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.1169, allocations: 207.2 kB / 420.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.1171, allocations: 48.38 kB / 420.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.1172, allocations: 79.7 kB / 420.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.1173, allocations: 87.38 kB / 420.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.1174, allocations: 12 kB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.397e-05/0.1174, allocations: 12 kB / 420.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.381e-05/0.1174, allocations: 43.84 kB / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.431e-05/0.1175, allocations: 83.47 kB / 421.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.1178, allocations: 171 kB / 421.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.1178, allocations: 4 kB / 421.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1178, allocations: 0 / 421.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1178, allocations: 0 / 421.2 MB, free: 9.121 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007469/0.1185, allocations: 0.4905 MB / 421.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1186, allocations: 16.03 kB / 421.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.533e-05/0.1186, allocations: 46.73 kB / 421.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.1187, allocations: 20.8 kB / 421.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.1189, allocations: 235.8 kB / 422 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.119, allocations: 12.12 kB / 422 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.119, allocations: 15.98 kB / 422.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/0.1193, allocations: 160.7 kB / 422.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1193, allocations: 0 / 422.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.1194, allocations: 8 kB / 422.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1194, allocations: 4 kB / 422.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.1196, allocations: 91.88 kB / 422.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.1207, allocations: 0.6489 MB / 423 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.121, allocations: 119.8 kB / 423.1 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.1211, allocations: 54.67 kB / 423.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1212, allocations: 7.984 kB / 423.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.1212, allocations: 38.56 kB / 423.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.1212, allocations: 0 / 423.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005648/0.1218, allocations: 181.8 kB / 423.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.1218, allocations: 102.9 kB / 423.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.1221, allocations: 233 kB / 423.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.1221, allocations: 29.7 kB / 423.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1222, allocations: 140 kB / 423.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.1222, allocations: 43.58 kB / 423.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-05/0.1223, allocations: 37.7 kB / 423.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1225, allocations: 334.8 kB / 424.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.1226, allocations: 39.92 kB / 424.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.1227, allocations: 96.97 kB / 424.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.123, allocations: 150.8 kB / 424.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.123, allocations: 0 / 424.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003949/0.1234, allocations: 189.4 kB / 424.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1234, allocations: 8 kB / 424.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1234, allocations: 0 / 424.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.1235, allocations: 7.938 kB / 424.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1236, allocations: 43.91 kB / 424.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1236, allocations: 0 / 424.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.1238, allocations: 15.89 kB / 424.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.1238, allocations: 7.984 kB / 424.8 MB, free: 5.207 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * 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.0001302/0.1239, allocations: 137.8 kB / 424.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.124, allocations: 23.86 kB / 425 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005118/0.1245, allocations: 182.9 kB / 425.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.1245, allocations: 0 / 425.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1245, allocations: 4 kB / 425.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1245, allocations: 3.984 kB / 425.1 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007026/0.1252, allocations: 269.4 kB / 425.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1252, allocations: 4 kB / 425.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.1255, allocations: 39.91 kB / 425.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1255, allocations: 0 / 425.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.1255, allocations: 8 kB / 425.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1255, allocations: 0 / 425.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1255, allocations: 4 kB / 425.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006614/0.1262, allocations: 469.7 kB / 425.9 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.285e-05/0.1263, allocations: 104.9 kB / 426 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.1263, allocations: 8.25 kB / 426 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.1265, allocations: 8 kB / 426 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.1266, allocations: 23.84 kB / 426.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1266, allocations: 4 kB / 426.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.1268, allocations: 172.5 kB / 426.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1268, allocations: 0 / 426.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003487/0.1271, allocations: 36 kB / 426.3 MB, free: 3.633 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * 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 (17): * Single equations (assignments): 17 * 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.0009486/0.128, allocations: 0.9978 MB / 427.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.1284, allocations: 115.9 kB / 427.4 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1284, allocations: 3.938 kB / 427.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.1285, allocations: 63.89 kB / 427.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.129, allocations: 22.77 kB / 427.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.1323, allocations: 2.571 MB / 430 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.1327, allocations: 0.7436 MB / 430.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.471e-05/0.1328, allocations: 17.53 kB / 430.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.1329, allocations: 75.34 kB / 430.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1329, allocations: 0 / 430.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.1646, allocations: 3.622 MB / 434.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.659/8.824, allocations: 22.25 kB / 434.5 MB, free: 11.27 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_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_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sine.y in file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv. Warning: Get data of variable sine.y from file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv failed! Error: Could not read variable sinAM.y in file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv. Warning: Get data of variable sinAM.y from file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv failed! Error: Could not read variable cosAM.y in file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv. Warning: Get data of variable cosAM.y from file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv failed! Error: Could not read variable sinFM.y in file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv. Warning: Get data of variable sinFM.y from file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv failed! Error: Could not read variable cosFM.y in file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv. Warning: Get data of variable cosFM.y from file Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.759877142962068]