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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009984/0.0009984, allocations: 180.8 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 221.4 MB / 229.9 MB, free: 3.086 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009055/0.0009055, allocations: 98.02 kB / 280.8 MB, free: 1.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1091/0.11, allocations: 55.81 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.3327, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08115/0.4139, allocations: 76.07 MB / 463.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.4141, allocations: 60.66 kB / 463.1 MB, free: 10.66 MB / 346.7 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.008513/0.4226, allocations: 2.999 MB / 466.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4227, allocations: 11.98 kB / 466.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.4228, allocations: 24.47 kB / 466.2 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.423, allocations: 229 kB / 466.4 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.4231, allocations: 8 kB / 466.4 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.4231, allocations: 11.91 kB / 466.4 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001444/0.4232, allocations: 67.97 kB / 466.5 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.4235, allocations: 136.1 kB / 466.6 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.4235, allocations: 3.984 kB / 466.6 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.4235, allocations: 0 / 466.6 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.4235, allocations: 4.75 kB / 466.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009414/0.4245, allocations: 0.6033 MB / 467.2 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.4247, allocations: 99.05 kB / 467.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.4247, allocations: 46.64 kB / 467.4 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.4248, allocations: 8 kB / 467.4 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.4248, allocations: 30.56 kB / 467.4 MB, free: 6.234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.193e-06/0.4248, allocations: 0 / 467.4 MB, free: 6.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002937/0.4251, allocations: 118.7 kB / 467.5 MB, free: 6.113 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.4251, allocations: 103.4 kB / 467.6 MB, free: 5.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.4253, allocations: 162 kB / 467.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.4253, allocations: 25.7 kB / 467.8 MB, free: 5.789 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.4254, allocations: 123.8 kB / 467.9 MB, free: 5.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.4254, allocations: 43.36 kB / 468 MB, free: 5.621 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-06/0.4254, allocations: 0 / 468 MB, free: 5.621 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.4255, allocations: 332.8 kB / 468.3 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.614e-05/0.4256, allocations: 27.91 kB / 468.3 MB, free: 5.262 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.998e-05/0.4257, allocations: 82.86 kB / 468.4 MB, free: 5.156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.364e-05/0.4258, allocations: 39.92 kB / 468.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4258, allocations: 0 / 468.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002159/0.426, allocations: 142.1 kB / 468.6 MB, free: 4.973 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.426, allocations: 8 kB / 468.6 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.426, allocations: 0 / 468.6 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.426, allocations: 7.938 kB / 468.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.4262, allocations: 39.91 kB / 468.6 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.4262, allocations: 4 kB / 468.6 MB, free: 4.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.4264, allocations: 12.72 kB / 468.6 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.4264, allocations: 19.98 kB / 468.7 MB, free: 4.883 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.269e-05/0.4265, allocations: 111.8 kB / 468.8 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.4265, allocations: 15.81 kB / 468.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002625/0.4268, allocations: 149.4 kB / 468.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.4268, allocations: 4 kB / 468.9 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4268, allocations: 0 / 468.9 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.4269, allocations: 3.984 kB / 468.9 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/0.4272, allocations: 235.2 kB / 469.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4273, allocations: 0 / 469.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.4275, allocations: 36.55 kB / 469.2 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.83e-06/0.4275, allocations: 3.906 kB / 469.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.4275, allocations: 7.984 kB / 469.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.4275, allocations: 3.938 kB / 469.2 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4275, allocations: 0 / 469.2 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000395/0.4279, allocations: 453.4 kB / 469.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005027/0.4284, allocations: 0.8589 MB / 470.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.4285, allocations: 100.8 kB / 470.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.4285, allocations: 4 kB / 470.6 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.4287, allocations: 4 kB / 470.6 MB, free: 2.793 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.4288, allocations: 15.98 kB / 470.6 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.4288, allocations: 12.98 kB / 470.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.97e-05/0.4289, allocations: 132.2 kB / 470.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008919/0.4298, allocations: 39.84 kB / 470.8 MB, free: 2.598 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.4299, allocations: 107.2 kB / 470.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000165/0.4301, allocations: 83.83 kB / 471 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.4301, allocations: 0.6562 kB / 471 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.404e-05/0.4302, allocations: 56.3 kB / 471.1 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.4304, allocations: 11.98 kB / 471.1 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009575/0.4314, allocations: 0.5272 MB / 471.6 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.4318, allocations: 0.7741 MB / 472.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4318, allocations: 0 / 472.4 MB, free: 0.9766 MB / 346.7 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat does not exist to compare? outputFormat=mat