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) 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) 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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 87.98 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 179.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.3 MB / 241.2 MB, free: 5.242 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 4.844 kB / 300.9 MB, free: 5.559 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1027, allocations: 50.43 MB / 351.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.001922/0.1047, allocations: 1.637 MB / 353 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000766/0.1055, allocations: 0.5223 MB / 353.5 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.33e-05/0.1056, allocations: 7.938 kB / 353.5 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.1057, allocations: 31.72 kB / 353.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.195e-05/0.1058, allocations: 31.7 kB / 353.6 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.1059, allocations: 47.89 kB / 353.6 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.1061, allocations: 175.3 kB / 353.8 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1063, allocations: 52.22 kB / 353.8 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.587e-05/0.1064, allocations: 59.72 kB / 353.9 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.1065, allocations: 63.58 kB / 353.9 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.1065, allocations: 8 kB / 354 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.903e-05/0.1066, allocations: 4 kB / 354 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.1066, allocations: 23.86 kB / 354 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.998e-05/0.1066, allocations: 53.64 kB / 354 MB, free: 8.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1068, allocations: 111.7 kB / 354.1 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1068, allocations: 0 / 354.1 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1068, allocations: 0 / 354.1 MB, free: 8.453 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1068, allocations: 0 / 354.1 MB, free: 8.453 MB / 286.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.0005581/0.1073, allocations: 474.4 kB / 354.6 MB, free: 7.941 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1074, allocations: 12.03 kB / 354.6 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.648e-05/0.1074, allocations: 58.38 kB / 354.7 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.98e-05/0.1075, allocations: 19.81 kB / 354.7 MB, free: 7.844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.1077, allocations: 226.7 kB / 354.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.1077, allocations: 8 kB / 354.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.1078, allocations: 19.94 kB / 354.9 MB, free: 7.555 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.1081, allocations: 164.7 kB / 355.1 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.1081, allocations: 0 / 355.1 MB, free: 7.379 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.1081, allocations: 4 kB / 355.1 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.1081, allocations: 7.953 kB / 355.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.1083, allocations: 95.88 kB / 355.2 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000814/0.1092, allocations: 0.6449 MB / 355.9 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.1094, allocations: 131.8 kB / 356 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.1095, allocations: 62.61 kB / 356 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.1095, allocations: 8 kB / 356.1 MB, free: 6.336 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/0.1096, allocations: 30.56 kB / 356.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.1096, allocations: 0 / 356.1 MB, free: 6.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.000451/0.11, allocations: 197.3 kB / 356.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.1101, allocations: 110.7 kB / 356.4 MB, free: 5.965 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.1103, allocations: 233 kB / 356.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.1103, allocations: 25.7 kB / 356.6 MB, free: 5.699 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.241e-05/0.1104, allocations: 132 kB / 356.8 MB, free: 5.566 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.1104, allocations: 51.3 kB / 356.8 MB, free: 5.516 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.1105, allocations: 0 / 356.8 MB, free: 5.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1106, allocations: 338.8 kB / 357.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.59e-05/0.1107, allocations: 35.98 kB / 357.2 MB, free: 5.141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.1108, allocations: 102.8 kB / 357.3 MB, free: 5.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.1109, allocations: 51.92 kB / 357.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1109, allocations: 4 kB / 357.3 MB, free: 4.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003112/0.1112, allocations: 181.2 kB / 357.5 MB, free: 4.777 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1113, allocations: 8 kB / 357.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1113, allocations: 3.984 kB / 357.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1113, allocations: 4 kB / 357.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1115, allocations: 44.11 kB / 357.6 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1115, allocations: 3.953 kB / 357.6 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.643e-05/0.1116, allocations: 23.83 kB / 357.6 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.1116, allocations: 4 kB / 357.6 MB, free: 4.688 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.72e-05/0.1117, allocations: 133.7 kB / 357.7 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.1118, allocations: 23.72 kB / 357.8 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003778/0.1122, allocations: 190.8 kB / 357.9 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1122, allocations: 4 kB / 357.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1122, allocations: 0 / 357.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1122, allocations: 3.953 kB / 358 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.1126, allocations: 273.9 kB / 358.2 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1126, allocations: 0 / 358.2 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.1128, allocations: 39.92 kB / 358.3 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1128, allocations: 3.984 kB / 358.3 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.1129, allocations: 12 kB / 358.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1129, allocations: 0 / 358.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1129, allocations: 4 kB / 358.3 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.1134, allocations: 488.6 kB / 358.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.21e-05/0.1134, allocations: 92.86 kB / 358.8 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.1135, allocations: 12.05 kB / 358.9 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1137, allocations: 8 kB / 358.9 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.1137, allocations: 15.98 kB / 358.9 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.1138, allocations: 4 kB / 358.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.1139, allocations: 172.4 kB / 359.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1139, allocations: 0 / 359.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.1143, allocations: 35.91 kB / 359.1 MB, free: 3.109 MB / 286.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 (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.0007604/0.115, allocations: 1.013 MB / 360.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.1153, allocations: 135.9 kB / 360.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1153, allocations: 0 / 360.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.1154, allocations: 64.59 kB / 360.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/0.1159, allocations: 20.44 kB / 360.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.1181, allocations: 1.54 MB / 361.9 MB, free: 236 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.1184, allocations: 0.7402 MB / 362.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.296e-05/0.1185, allocations: 25.52 kB / 362.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1186, allocations: 67.41 kB / 362.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1186, allocations: 4 kB / 362.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01252/0.1311, allocations: 3.32 MB / 366 MB, free: 12.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.1313, allocations: 166.7 kB / 366.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/1.912, allocations: 4 kB / 366.2 MB, free: 11.92 MB / 302.1 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