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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009414/0.0009416, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.386/1.386, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008261/0.0008261, allocations: 85.08 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.798e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09849, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.298/0.3965, allocations: 76.13 MB / 463.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.3968, allocations: 63.97 kB / 463.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009594/0.4064, allocations: 2.856 MB / 466.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4065, allocations: 0 / 466.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.4065, allocations: 8 kB / 466.6 MB, free: 15.67 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.0007357/0.4072, allocations: 464.4 kB / 467.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/0.4073, allocations: 8.031 kB / 467.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.924e-05/0.4074, allocations: 27.67 kB / 467.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.4078, allocations: 226.7 kB / 467.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.4078, allocations: 10.62 kB / 467.3 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.4079, allocations: 8 kB / 467.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002148/0.4081, allocations: 63.91 kB / 467.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.4085, allocations: 140.2 kB / 467.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4085, allocations: 0.8438 kB / 467.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.4085, allocations: 4 kB / 467.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.4085, allocations: 3.953 kB / 467.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.4098, allocations: 0.6026 MB / 468.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.41, allocations: 111.8 kB / 468.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.148e-05/0.4101, allocations: 42.7 kB / 468.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.4101, allocations: 4 kB / 468.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.4102, allocations: 30.56 kB / 468.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.996e-06/0.4102, allocations: 0 / 468.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000324/0.4105, allocations: 121.3 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.4106, allocations: 106.8 kB / 468.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.4108, allocations: 161.9 kB / 468.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.4108, allocations: 25.7 kB / 468.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.4109, allocations: 139.8 kB / 468.9 MB, free: 13.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.766e-05/0.411, allocations: 43.36 kB / 468.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/0.411, allocations: 0 / 468.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4112, allocations: 338.8 kB / 469.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.779e-05/0.4113, allocations: 31.91 kB / 469.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.4114, allocations: 75.95 kB / 469.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.4116, allocations: 35.98 kB / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.4116, allocations: 7.938 kB / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003208/0.4119, allocations: 145.3 kB / 469.5 MB, free: 12.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.4119, allocations: 8 kB / 469.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.412, allocations: 0 / 469.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.412, allocations: 4 kB / 469.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.4122, allocations: 44.16 kB / 469.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4123, allocations: 4 kB / 469.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.4124, allocations: 11.84 kB / 469.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/0.4125, allocations: 11.98 kB / 469.6 MB, free: 12.39 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 0.0001002/0.4126, allocations: 108.9 kB / 469.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003331/0.4129, allocations: 113.4 kB / 469.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.4131, allocations: 20.11 kB / 469.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.4134, allocations: 147.2 kB / 470 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.4135, allocations: 0 / 470 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4135, allocations: 8 kB / 470 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.4135, allocations: 0 / 470 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005989/0.4141, allocations: 237.9 kB / 470.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4141, allocations: 0 / 470.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.4144, allocations: 39.92 kB / 470.3 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.4145, allocations: 4 kB / 470.3 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.4145, allocations: 4 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.4145, allocations: 3.984 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4145, allocations: 4 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.4151, allocations: 450.8 kB / 470.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.4152, allocations: 96.98 kB / 470.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.4153, allocations: 4 kB / 470.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.4156, allocations: 7.984 kB / 470.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.4156, allocations: 15.94 kB / 470.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.4157, allocations: 4 kB / 470.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001472/0.4158, allocations: 140.2 kB / 471 MB, free: 10.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4158, allocations: 0 / 471 MB, free: 10.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006029/0.4164, allocations: 44.03 kB / 471 MB, free: 10.86 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.0009016/0.4174, allocations: 1.114 MB / 472.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.4177, allocations: 89.55 kB / 472.2 MB, free: 9.625 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4177, allocations: 0 / 472.2 MB, free: 9.625 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.4179, allocations: 59.84 kB / 472.3 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.4183, allocations: 7.938 kB / 472.3 MB, free: 9.559 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.4201, allocations: 0.5891 MB / 472.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.4205, allocations: 0.7513 MB / 473.6 MB, free: 8.148 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000122/0.4206, allocations: 17.19 kB / 473.7 MB, free: 8.133 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.4208, allocations: 67.41 kB / 473.7 MB, free: 8.066 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4208, allocations: 0 / 473.7 MB, free: 8.066 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.4461, allocations: 2.63 MB / 476.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.4464, allocations: 125.3 kB / 476.5 MB, free: 5.254 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.314, allocations: 0 / 476.5 MB, free: 5.254 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