Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.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.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009134/0.0009134, allocations: 96.22 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.0002661, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2611, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.3644, allocations: 80.98 MB / 482.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3647, allocations: 73.05 kB / 482.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02853/0.3932, allocations: 10.5 MB / 493.1 MB, free: 4.887 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3932, allocations: 0 / 493.1 MB, free: 4.887 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.88e-05/0.3933, allocations: 20 kB / 493.1 MB, free: 4.867 MB / 362.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.001873/0.3952, allocations: 0.9218 MB / 494.1 MB, free: 3.883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.179e-05/0.3952, allocations: 8.031 kB / 494.1 MB, free: 3.875 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.3954, allocations: 102.5 kB / 494.2 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.3956, allocations: 83.06 kB / 494.3 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.3965, allocations: 0.5292 MB / 494.8 MB, free: 3.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.3965, allocations: 45.31 kB / 494.8 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.22e-05/0.3966, allocations: 60 kB / 494.9 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3979, allocations: 0.6839 MB / 495.6 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.3979, allocations: 3.906 kB / 495.6 MB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.398, allocations: 20 kB / 495.6 MB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.398, allocations: 20 kB / 495.6 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.3991, allocations: 0.5516 MB / 496.2 MB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003074/0.4022, allocations: 1.984 MB / 498.2 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.4033, allocations: 0.5312 MB / 498.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.4034, allocations: 16.38 kB / 498.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007427/0.4041, allocations: 417 kB / 499.1 MB, free: 14.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=53): time 4.779e-06/0.4041, allocations: 0 / 499.1 MB, free: 14.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.001612/0.4057, allocations: 0.7912 MB / 499.9 MB, free: 13.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/0.4058, allocations: 123.2 kB / 0.4883 GB, free: 13.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004577/0.4063, allocations: 397 kB / 0.4887 GB, free: 13.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.4064, allocations: 41.7 kB / 0.4887 GB, free: 13.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.4066, allocations: 320.3 kB / 0.489 GB, free: 12.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.4067, allocations: 165.7 kB / 0.4892 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.4068, allocations: 12 kB / 0.4892 GB, free: 12.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4069, allocations: 374.7 kB / 0.4896 GB, free: 12.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.4074, allocations: 229.2 kB / 0.4898 GB, free: 12.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005967/0.408, allocations: 437 kB / 0.4902 GB, free: 11.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000526/0.4085, allocations: 274.4 kB / 0.4904 GB, free: 11.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.4085, allocations: 4 kB / 0.4905 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001276/0.4098, allocations: 0.7261 MB / 0.4912 GB, free: 10.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009284/0.4108, allocations: 2.523 MB / 0.4936 GB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4108, allocations: 4 kB / 0.4936 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.4108, allocations: 16 kB / 0.4936 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.4114, allocations: 147.7 kB / 0.4938 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.4114, allocations: 19.89 kB / 0.4938 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.4119, allocations: 83.55 kB / 0.4939 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.4119, allocations: 32 kB / 0.4939 GB, free: 7.684 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.055e-06/0.412, allocations: 4 kB / 0.4939 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001014/0.413, allocations: 0.5988 MB / 0.4945 GB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.413, allocations: 12.09 kB / 0.4945 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.413, allocations: 8 kB / 0.4945 GB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.4135, allocations: 131.8 kB / 0.4946 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.4135, allocations: 15.92 kB / 0.4947 GB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.4138, allocations: 75.59 kB / 0.4947 GB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.4139, allocations: 28 kB / 0.4948 GB, free: 6.82 MB / 378.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 () * Number of clocked 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.0004008/0.4143, allocations: 307.5 kB / 0.4951 GB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.4144, allocations: 63.28 kB / 0.4951 GB, free: 6.445 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.4156, allocations: 0.6228 MB / 0.4957 GB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.4156, allocations: 8 kB / 0.4957 GB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4157, allocations: 4 kB / 0.4957 GB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.4157, allocations: 3.938 kB / 0.4957 GB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.4164, allocations: 0.638 MB / 0.4964 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4164, allocations: 0 / 0.4964 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.4168, allocations: 99.88 kB / 0.4965 GB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.4168, allocations: 4 kB / 0.4965 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.285e-05/0.4169, allocations: 15.94 kB / 0.4965 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4169, allocations: 0 / 0.4965 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4169, allocations: 0 / 0.4965 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.4186, allocations: 0.9413 MB / 0.4974 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.4187, allocations: 132.4 kB / 0.4975 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.925e-05/0.4188, allocations: 12 kB / 0.4975 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003397/0.4192, allocations: 59.91 kB / 0.4976 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.4193, allocations: 44.38 kB / 0.4976 GB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/0.4193, allocations: 23.92 kB / 0.4977 GB, free: 3.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.4197, allocations: 311.1 kB / 0.498 GB, free: 3.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4197, allocations: 0 / 0.498 GB, free: 3.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007565/0.4205, allocations: 251.1 kB / 0.4982 GB, free: 3.195 MB / 378.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) * Number of clocked states: 0 () * 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.001966/0.4224, allocations: 1.507 MB / 0.4997 GB, free: 1.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.4242, allocations: 0.8901 MB / 0.5005 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4242, allocations: 0 / 0.5005 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005258/0.4247, allocations: 290.4 kB / 0.5008 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.4251, allocations: 66.47 kB / 0.5009 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1905/0.6156, allocations: 6.069 MB / 0.5068 GB, free: 92.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.6162, allocations: 0.9121 MB / 0.5077 GB, free: 91.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005322/0.6167, allocations: 97.05 kB / 0.5078 GB, free: 91.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.6171, allocations: 239.2 kB / 0.508 GB, free: 91.81 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.6171, allocations: 0 / 0.508 GB, free: 91.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.6402, allocations: 10.38 MB / 0.5181 GB, free: 90.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.6405, allocations: 177.4 kB / 0.5183 GB, free: 90.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.819, allocations: 3.75 kB / 0.5183 GB, free: 90.43 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_TotalHarmonicDistortion.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat