Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",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 trunk/package.mo): time 0.002158/0.002159, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009491/0.0009491, allocations: 89.08 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1166/0.1176, allocations: 56.9 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.2113, allocations: 51.48 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2844/0.4958, allocations: 81.01 MB / 475.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.496, allocations: 71.95 kB / 475.8 MB, free: 11.54 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.03015/0.5262, allocations: 11.3 MB / 487.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.5263, allocations: 12 kB / 487.1 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009004/0.5272, allocations: 166.5 kB / 487.3 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.5282, allocations: 0.5334 MB / 487.8 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.5283, allocations: 20 kB / 487.8 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.5284, allocations: 47.84 kB / 487.9 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008699/0.5293, allocations: 398.9 kB / 488.3 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009179/0.5302, allocations: 0.5359 MB / 488.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/0.5302, allocations: 4 kB / 488.8 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.5303, allocations: 3.25 kB / 488.8 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.5303, allocations: 12 kB / 488.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.5334, allocations: 1.881 MB / 490.7 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006385/0.5341, allocations: 361.6 kB / 491 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.5344, allocations: 158.4 kB / 491.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.07e-05/0.5345, allocations: 20.09 kB / 491.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.5349, allocations: 268.2 kB / 491.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 2.685e-06/0.5349, allocations: 0 / 491.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.0008365/0.5358, allocations: 429.8 kB / 491.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.5358, allocations: 115.9 kB / 492 MB, free: 15.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.5364, allocations: 400.9 kB / 492.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.5364, allocations: 29.7 kB / 492.4 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.5366, allocations: 254.8 kB / 492.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.5368, allocations: 156.7 kB / 492.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.5368, allocations: 0 / 492.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.537, allocations: 372.2 kB / 493.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.5373, allocations: 150.2 kB / 493.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/0.5377, allocations: 373.7 kB / 493.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/0.5381, allocations: 188.6 kB / 493.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.5381, allocations: 4 kB / 493.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0009749/0.5391, allocations: 0.5446 MB / 494.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009609/0.54, allocations: 2.517 MB / 497 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.5401, allocations: 11.91 kB / 497 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.5401, allocations: 8 kB / 497 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006487/0.5407, allocations: 151.4 kB / 497.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.495e-05/0.5408, allocations: 11.94 kB / 497.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005368/0.5413, allocations: 91.42 kB / 497.2 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.226e-05/0.5414, allocations: 31.25 kB / 497.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.5414, allocations: 4 kB / 497.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000817/0.5422, allocations: 445.4 kB / 497.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.5423, allocations: 8 kB / 497.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.5423, allocations: 11.91 kB / 497.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.5428, allocations: 141.3 kB / 497.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.5428, allocations: 23.92 kB / 497.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.5433, allocations: 55.67 kB / 497.9 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.443e-05/0.5434, allocations: 29.42 kB / 498 MB, free: 9.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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 0.0001783/0.5435, allocations: 135.2 kB / 498.1 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.5437, allocations: 60.22 kB / 498.2 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000906/0.5446, allocations: 453 kB / 498.6 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.5446, allocations: 4 kB / 498.6 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.5446, allocations: 0 / 498.6 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.5446, allocations: 7.984 kB / 498.6 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007794/0.5454, allocations: 0.5762 MB / 499.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.5454, allocations: 0 / 499.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.5459, allocations: 99.38 kB / 499.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/0.546, allocations: 4 kB / 499.3 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.546, allocations: 11.42 kB / 499.3 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.546, allocations: 0.5625 kB / 499.3 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5461, allocations: 0 / 499.3 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00114/0.5472, allocations: 0.6992 MB / 500 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001501/0.5487, allocations: 1.31 MB / 0.4896 GB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.5489, allocations: 131.7 kB / 0.4897 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.549, allocations: 11.48 kB / 0.4897 GB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.5494, allocations: 53.77 kB / 0.4897 GB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.5496, allocations: 39.31 kB / 0.4898 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.311e-05/0.5496, allocations: 27.41 kB / 0.4898 GB, free: 6.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003353/0.55, allocations: 297.3 kB / 0.4901 GB, free: 6.664 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002244/0.5522, allocations: 229.9 kB / 0.4903 GB, free: 6.445 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000224/0.5524, allocations: 134.4 kB / 0.4904 GB, free: 6.309 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.5538, allocations: 0.6966 MB / 0.4911 GB, free: 5.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5538, allocations: 0 / 0.4911 GB, free: 5.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.5541, allocations: 217.8 kB / 0.4913 GB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.5545, allocations: 68.3 kB / 0.4914 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.5566, allocations: 0.8704 MB / 0.4922 GB, free: 4.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.5573, allocations: 0.992 MB / 0.4932 GB, free: 3.832 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5573, allocations: 0 / 0.4932 GB, free: 3.832 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat