Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.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.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",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.001033/0.001033, allocations: 91.33 kB / 16.31 MB, free: 5.621 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.001263/0.001263, allocations: 180.6 kB / 17.21 MB, free: 5.539 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.288/1.288, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002791, allocations: 4 kB / 300.9 MB, free: 6.391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1039, allocations: 50.43 MB / 351.3 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002174/0.1062, allocations: 1.816 MB / 353.2 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009921/0.1072, allocations: 0.6353 MB / 353.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.1073, allocations: 7.938 kB / 353.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.1074, allocations: 35.66 kB / 353.8 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.1076, allocations: 35.78 kB / 353.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.1078, allocations: 67.86 kB / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.1081, allocations: 207.8 kB / 354.1 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1082, allocations: 81.89 kB / 354.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1084, allocations: 71.64 kB / 354.3 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1085, allocations: 83.55 kB / 354.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.1086, allocations: 8 kB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.1086, allocations: 15.94 kB / 354.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.1087, allocations: 35.84 kB / 354.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.1088, allocations: 57.58 kB / 354.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.109, allocations: 167.9 kB / 354.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.109, allocations: 4 kB / 354.7 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.109, allocations: 0 / 354.7 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.109, allocations: 0 / 354.7 MB, free: 0.6094 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007173/0.1097, allocations: 0.5065 MB / 355.2 MB, free: 56 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1098, allocations: 8.031 kB / 355.2 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.099e-05/0.1098, allocations: 58.62 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.922e-05/0.1099, allocations: 31.58 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.1101, allocations: 246.6 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1102, allocations: 16.44 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.1102, allocations: 20 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1107, allocations: 262.6 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1107, allocations: 3.906 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.1107, allocations: 4 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.1108, allocations: 24.38 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.1112, allocations: 193.6 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.1122, allocations: 0.8304 MB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.1125, allocations: 191 kB / 357 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.1127, allocations: 109.2 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.205e-05/0.1128, allocations: 93.27 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1129, allocations: 38.69 kB / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.1129, allocations: 0 / 357.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001299/0.1142, allocations: 0.7446 MB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1142, allocations: 55.41 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.1144, allocations: 217 kB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1144, allocations: 33.64 kB / 358.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.1145, allocations: 148.4 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.1146, allocations: 82.81 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.1146, allocations: 4 kB / 358.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.1147, allocations: 338.8 kB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1149, allocations: 83.95 kB / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.1151, allocations: 123.4 kB / 359.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.1153, allocations: 105.3 kB / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.1153, allocations: 3.953 kB / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004679/0.1158, allocations: 291.2 kB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1158, allocations: 4 kB / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1158, allocations: 0 / 359.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1159, allocations: 7.984 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.1161, allocations: 63.89 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1161, allocations: 4 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.1163, allocations: 20.05 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1163, allocations: 8 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0001155/0.1164, allocations: 145.7 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.1165, allocations: 27.67 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005371/0.117, allocations: 300.1 kB / 360 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.117, allocations: 4 kB / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.117, allocations: 0 / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.117, allocations: 3.984 kB / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009218/0.118, allocations: 0.6981 MB / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.118, allocations: 0 / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.1182, allocations: 55.95 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1182, allocations: 7.938 kB / 360.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.1183, allocations: 4 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/0.1183, allocations: 8.031 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1183, allocations: 0 / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007111/0.119, allocations: 0.4925 MB / 361.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.988e-05/0.1191, allocations: 116.9 kB / 361.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1191, allocations: 8 kB / 361.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.1193, allocations: 15.98 kB / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.83e-05/0.1194, allocations: 15.97 kB / 361.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.1194, allocations: 12 kB / 361.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1195, allocations: 152.5 kB / 361.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1195, allocations: 0 / 361.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000287/0.1198, allocations: 55.98 kB / 361.7 MB, free: 9.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * 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 (28): * Single equations (assignments): 28 * 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.0009752/0.1208, allocations: 1.051 MB / 362.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004339/0.1212, allocations: 227.8 kB / 362.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1212, allocations: 4 kB / 362.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.1215, allocations: 123.8 kB / 363.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1218, allocations: 29.27 kB / 363.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.1241, allocations: 1.751 MB / 364.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1244, allocations: 0.7603 MB / 365.6 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1245, allocations: 45.91 kB / 365.6 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.1246, allocations: 87.41 kB / 365.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1246, allocations: 3.938 kB / 365.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.1378, allocations: 4.167 MB / 369.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000147/0.1379, allocations: 176.7 kB / 370.1 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/1.946, allocations: 0 / 370.1 MB, free: 0.6758 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat