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.001274/0.001274, allocations: 108.8 kB / 21.22 MB, free: 0.7305 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.001288/0.001288, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.387/1.387, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 51.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.285, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003432/0.2884, allocations: 2.009 MB / 425.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.2895, allocations: 0.5804 MB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.2896, allocations: 7.938 kB / 426 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.2898, allocations: 39.53 kB / 426 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.539e-05/0.2899, allocations: 39.66 kB / 426.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.2901, allocations: 71.73 kB / 426.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.2904, allocations: 203.2 kB / 426.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.2905, allocations: 56.48 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.2907, allocations: 79.66 kB / 426.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.2908, allocations: 79.55 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.2908, allocations: 12 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.287e-05/0.2909, allocations: 12 kB / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.46e-05/0.2909, allocations: 35.86 kB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.687e-05/0.291, allocations: 87.45 kB / 426.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.2912, allocations: 179.9 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2912, allocations: 4 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2912, allocations: 0 / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.2913, allocations: 0 / 426.9 MB, free: 11.1 MB / 334.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.0006859/0.2919, allocations: 417.2 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.292, allocations: 12.03 kB / 427.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.721e-05/0.292, allocations: 4.188 kB / 427.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.8e-05/0.292, allocations: 46.73 kB / 427.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.2921, allocations: 32.73 kB / 427.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.2923, allocations: 178.1 kB / 427.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.2923, allocations: 11.94 kB / 427.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.2924, allocations: 12 kB / 427.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.2927, allocations: 168.1 kB / 427.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2927, allocations: 0 / 427.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.2927, allocations: 7.938 kB / 427.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.2927, allocations: 4 kB / 427.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.293, allocations: 87.95 kB / 427.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.2939, allocations: 0.605 MB / 428.4 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.2942, allocations: 131.8 kB / 428.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.2943, allocations: 50.69 kB / 428.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.2943, allocations: 7.984 kB / 428.6 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2943, allocations: 38.5 kB / 428.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.2943, allocations: 0 / 428.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004957/0.2948, allocations: 177.8 kB / 428.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.2949, allocations: 110.8 kB / 429 MB, free: 8.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/0.2951, allocations: 229.1 kB / 429.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.2951, allocations: 29.83 kB / 429.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.2952, allocations: 136 kB / 429.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.2953, allocations: 47.64 kB / 429.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.034e-05/0.2953, allocations: 29.7 kB / 429.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2955, allocations: 342.7 kB / 429.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.2956, allocations: 35.98 kB / 429.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.2957, allocations: 97.8 kB / 429.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.296, allocations: 150.8 kB / 430 MB, free: 7.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.296, allocations: 0 / 430 MB, free: 7.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003406/0.2963, allocations: 181.3 kB / 430.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2963, allocations: 4.188 kB / 430.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2963, allocations: 8 kB / 430.2 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2964, allocations: 4 kB / 430.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.2965, allocations: 35.91 kB / 430.3 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.2965, allocations: 4 kB / 430.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.2966, allocations: 15.89 kB / 430.3 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2967, allocations: 11.98 kB / 430.3 MB, free: 7.402 MB / 334.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.0001095/0.2968, allocations: 133.7 kB / 430.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-05/0.2968, allocations: 19.86 kB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003832/0.2972, allocations: 186.9 kB / 430.6 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2972, allocations: 4 kB / 430.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2972, allocations: 0 / 430.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2972, allocations: 3.984 kB / 430.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.2977, allocations: 244.5 kB / 430.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2977, allocations: 7.875 kB / 430.9 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.2979, allocations: 35.92 kB / 430.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2979, allocations: 4 kB / 430.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2979, allocations: 8 kB / 430.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2979, allocations: 0 / 430.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2979, allocations: 0 / 430.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005555/0.2985, allocations: 477.7 kB / 431.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.661e-05/0.2985, allocations: 27.8 kB / 431.4 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.2985, allocations: 4.25 kB / 431.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.2987, allocations: 11.98 kB / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.2987, allocations: 15.92 kB / 431.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2988, allocations: 4 kB / 431.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.2989, allocations: 172.5 kB / 431.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2989, allocations: 0 / 431.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.2993, allocations: 32 kB / 431.6 MB, free: 5.961 MB / 334.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.0008362/0.3001, allocations: 0.9958 MB / 432.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.3004, allocations: 123.6 kB / 432.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3004, allocations: 0 / 432.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.3005, allocations: 63.89 kB / 432.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.3009, allocations: 20.38 kB / 432.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.304, allocations: 2.577 MB / 435.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.3043, allocations: 0.7398 MB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.863e-05/0.3044, allocations: 17.47 kB / 436.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.3045, allocations: 75.41 kB / 436.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3045, allocations: 0 / 436.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.3331, allocations: 3.851 MB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.41, allocations: 9.938 kB / 440.1 MB, free: 13.45 MB / 350.1 MB " [Timeout remaining time 648] (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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.122816885006614]