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.001233/0.001233, allocations: 123.9 kB / 17.79 MB, free: 5.246 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.001255/0.001255, allocations: 185.2 kB / 20.73 MB, free: 2.316 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.404/1.404, allocations: 225.6 MB / 249.1 MB, free: 3.605 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.00143/0.00143, allocations: 51.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.1004, allocations: 52.15 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003226/0.1036, allocations: 1.995 MB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009552/0.1046, allocations: 0.5765 MB / 420.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/0.1047, allocations: 0 / 420.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.1048, allocations: 43.53 kB / 420.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.354e-05/0.1049, allocations: 43.58 kB / 420.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.1051, allocations: 67.86 kB / 420.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.1054, allocations: 203.2 kB / 420.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.1055, allocations: 44.39 kB / 420.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.1056, allocations: 75.7 kB / 420.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.1058, allocations: 83.5 kB / 420.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.1058, allocations: 12 kB / 420.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.294e-05/0.1058, allocations: 12 kB / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.1059, allocations: 43.83 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.549e-05/0.1059, allocations: 83.42 kB / 421 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.1062, allocations: 175.1 kB / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1062, allocations: 0 / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1062, allocations: 0 / 421.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1062, allocations: 0 / 421.2 MB, free: 9.156 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.0007555/0.1069, allocations: 0.4905 MB / 421.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.107, allocations: 12.03 kB / 421.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.887e-05/0.1071, allocations: 50.69 kB / 421.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.883e-05/0.1071, allocations: 28.73 kB / 421.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.1074, allocations: 235.8 kB / 422 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1074, allocations: 12.12 kB / 422 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.1075, allocations: 19.98 kB / 422.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.1078, allocations: 164.6 kB / 422.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1078, allocations: 0 / 422.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.1078, allocations: 8 kB / 422.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1078, allocations: 4 kB / 422.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.1081, allocations: 87.89 kB / 422.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000997/0.1091, allocations: 0.6411 MB / 423 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.1093, allocations: 127.8 kB / 423.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.1094, allocations: 54.62 kB / 423.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.1095, allocations: 7.984 kB / 423.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1095, allocations: 38.55 kB / 423.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/0.1095, allocations: 0 / 423.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004901/0.11, allocations: 173.4 kB / 423.3 MB, free: 6.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.1101, allocations: 106.8 kB / 423.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.1103, allocations: 237.1 kB / 423.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1103, allocations: 29.7 kB / 423.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1104, allocations: 136 kB / 423.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.1105, allocations: 47.58 kB / 423.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.1105, allocations: 33.7 kB / 423.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1107, allocations: 338.8 kB / 424.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.1108, allocations: 39.91 kB / 424.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.111, allocations: 94.84 kB / 424.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.1112, allocations: 147.2 kB / 424.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1112, allocations: 0 / 424.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003608/0.1116, allocations: 189.5 kB / 424.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1116, allocations: 8 kB / 424.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1116, allocations: 4 kB / 424.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1116, allocations: 0 / 424.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1118, allocations: 35.97 kB / 424.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1118, allocations: 0 / 424.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1119, allocations: 27.81 kB / 424.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.1119, allocations: 8 kB / 424.8 MB, free: 5.234 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.0001145/0.112, allocations: 129.8 kB / 424.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.1121, allocations: 23.86 kB / 424.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003854/0.1125, allocations: 186.8 kB / 425.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1125, allocations: 0 / 425.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1125, allocations: 4 kB / 425.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1125, allocations: 0 / 425.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005348/0.113, allocations: 281.4 kB / 425.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.113, allocations: 0 / 425.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.1132, allocations: 31.97 kB / 425.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.1132, allocations: 8 kB / 425.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1133, allocations: 7.984 kB / 425.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1133, allocations: 4 kB / 425.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1133, allocations: 0 / 425.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000582/0.1138, allocations: 475.7 kB / 425.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.1139, allocations: 101 kB / 426 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.114, allocations: 8 kB / 426 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.1141, allocations: 7.984 kB / 426 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.1142, allocations: 15.92 kB / 426.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.1142, allocations: 4 kB / 426.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.1144, allocations: 168.5 kB / 426.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1144, allocations: 0 / 426.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000344/0.1147, allocations: 32 kB / 426.3 MB, free: 3.676 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.000931/0.1156, allocations: 1.008 MB / 427.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.1159, allocations: 115.9 kB / 427.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1159, allocations: 7.938 kB / 427.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.1161, allocations: 64.2 kB / 427.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.1165, allocations: 22.56 kB / 427.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.1198, allocations: 2.575 MB / 430 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.1202, allocations: 0.7397 MB / 430.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.493e-05/0.1203, allocations: 17.53 kB / 430.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1204, allocations: 71.41 kB / 430.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1204, allocations: 0 / 430.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.147, allocations: 3.63 MB / 434.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.988/8.135, allocations: 19.09 kB / 434.5 MB, free: 11.3 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.80370766390115]