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.001361/0.001361, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001381/0.001381, allocations: 189 kB / 24.49 MB, free: 3.941 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.414/1.414, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001479/0.001479, allocations: 47.92 kB / 371.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.242, allocations: 52.19 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003058/0.2451, allocations: 1.892 MB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009178/0.246, allocations: 0.5376 MB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.2461, allocations: 7.938 kB / 425.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.2463, allocations: 43.53 kB / 425.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.568e-05/0.2464, allocations: 35.64 kB / 425.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.2466, allocations: 63.88 kB / 425.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.2468, allocations: 203.2 kB / 426.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.247, allocations: 64.23 kB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2471, allocations: 83.64 kB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.2473, allocations: 75.56 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.2473, allocations: 12 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.781e-05/0.2473, allocations: 16 kB / 426.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.303e-05/0.2474, allocations: 31.86 kB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.472e-05/0.2475, allocations: 67.58 kB / 426.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.2477, allocations: 177.4 kB / 426.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2477, allocations: 4 kB / 426.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2477, allocations: 4 kB / 426.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2477, allocations: 0 / 426.6 MB, free: 11.09 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.0007013/0.2484, allocations: 417.2 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2484, allocations: 12.03 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.895e-05/0.2484, allocations: 4.188 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.2485, allocations: 46.73 kB / 427.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.2486, allocations: 24.8 kB / 427.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.2488, allocations: 182.1 kB / 427.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2488, allocations: 11.94 kB / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.2489, allocations: 12 kB / 427.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.2492, allocations: 176 kB / 427.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2492, allocations: 0 / 427.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.2492, allocations: 4 kB / 427.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2492, allocations: 4 kB / 427.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.2495, allocations: 83.95 kB / 427.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009331/0.2504, allocations: 0.5856 MB / 428.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.2506, allocations: 123.8 kB / 428.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.2508, allocations: 62.61 kB / 428.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2508, allocations: 4 kB / 428.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.2508, allocations: 38.5 kB / 428.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.2508, allocations: 0 / 428.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004779/0.2513, allocations: 181.5 kB / 428.6 MB, free: 8.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/0.2514, allocations: 106.8 kB / 428.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.2516, allocations: 229.1 kB / 428.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.2516, allocations: 29.7 kB / 428.9 MB, free: 8.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.589e-05/0.2517, allocations: 136 kB / 429.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/0.2518, allocations: 51.59 kB / 429.1 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.944e-05/0.2518, allocations: 37.62 kB / 429.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.252, allocations: 334.8 kB / 429.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.2521, allocations: 39.97 kB / 429.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.2522, allocations: 90.88 kB / 429.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.2525, allocations: 146.7 kB / 429.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2525, allocations: 0 / 429.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003385/0.2528, allocations: 181.4 kB / 429.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2528, allocations: 4 kB / 429.9 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2528, allocations: 4 kB / 429.9 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2529, allocations: 4 kB / 430 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.253, allocations: 35.92 kB / 430 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.253, allocations: 7.984 kB / 430 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.2531, allocations: 12.08 kB / 430 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.2531, allocations: 16 kB / 430 MB, free: 7.418 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.0001093/0.2533, allocations: 129.7 kB / 430.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-05/0.2533, allocations: 27.84 kB / 430.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003836/0.2537, allocations: 178.9 kB / 430.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2537, allocations: 4 kB / 430.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2537, allocations: 0.5625 kB / 430.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2537, allocations: 0 / 430.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.2542, allocations: 228.5 kB / 430.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2542, allocations: 4 kB / 430.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.2544, allocations: 39.92 kB / 430.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2544, allocations: 96 / 430.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.2544, allocations: 11.98 kB / 430.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2544, allocations: 7.922 kB / 430.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2544, allocations: 3.938 kB / 430.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005462/0.2549, allocations: 481.1 kB / 431.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.365e-05/0.255, allocations: 23.8 kB / 431.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.255, allocations: 12.06 kB / 431.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.2552, allocations: 7.984 kB / 431.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.348e-05/0.2552, allocations: 15.92 kB / 431.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.2552, allocations: 4 kB / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.2554, allocations: 172.5 kB / 431.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2554, allocations: 0 / 431.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.2557, allocations: 32 kB / 431.4 MB, free: 5.988 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.0008377/0.2566, allocations: 0.9998 MB / 432.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.2568, allocations: 112.1 kB / 432.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2568, allocations: 0 / 432.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.257, allocations: 59.91 kB / 432.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.2574, allocations: 16.38 kB / 432.6 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/0.2603, allocations: 2.581 MB / 435.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.2605, allocations: 129.9 kB / 435.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.336e-05/0.2605, allocations: 21.47 kB / 435.3 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.2606, allocations: 67.41 kB / 435.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2606, allocations: 0 / 435.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.2929, allocations: 3.846 MB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.22, allocations: 16.84 kB / 439.2 MB, free: 14.12 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.871293711010367]