Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",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.0008952/0.0008951, allocations: 98.8 kB / 16.96 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.0009854/0.0009856, allocations: 184.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000548/0.0005482, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1004, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.002562/0.103, allocations: 1.895 MB / 330.3 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.1043, allocations: 0.7231 MB / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.1044, allocations: 0 / 331.1 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.223e-05/0.1045, allocations: 4 kB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.1046, allocations: 11.92 kB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006747/0.1053, allocations: 163.7 kB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.1055, allocations: 11.92 kB / 331.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.1055, allocations: 7.984 kB / 331.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.195e-05/0.1056, allocations: 11.94 kB / 331.3 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.189e-05/0.1057, allocations: 4 kB / 331.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.1057, allocations: 4 kB / 331.3 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002642/0.106, allocations: 135.8 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.106, allocations: 3.984 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.106, allocations: 25.7 kB / 331.4 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.1062, allocations: 79.86 kB / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1062, allocations: 0 / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1062, allocations: 8 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1063, allocations: 0 / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003569/0.1066, allocations: 347.5 kB / 331.9 MB, free: 500 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.1067, allocations: 8.031 kB / 331.9 MB, free: 492 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.1067, allocations: 30.56 kB / 331.9 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.847e-05/0.1067, allocations: 7.938 kB / 331.9 MB, free: 444 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.1069, allocations: 170.9 kB / 332.1 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1069, allocations: 0 / 332.1 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.1069, allocations: 4 kB / 332.1 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.052e-05/0.107, allocations: 37.7 kB / 332.1 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.107, allocations: 0 / 332.1 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1071, allocations: 0 / 332.1 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1071, allocations: 3.938 kB / 332.1 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.496e-05/0.1071, allocations: 11.92 kB / 332.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003909/0.1075, allocations: 396.1 kB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001567/0.1077, allocations: 173.1 kB / 332.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.958e-05/0.1077, allocations: 84.12 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.1078, allocations: 75.28 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.1078, allocations: 113.8 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 1.643e-06/0.1078, allocations: 0 / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 7.58e-05/0.1079, allocations: 33.64 kB / 333 MB, free: 15.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.108, allocations: 156.4 kB / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1081, allocations: 113.8 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1081, allocations: 29.7 kB / 333.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.1082, allocations: 84.05 kB / 333.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-06/0.1082, allocations: 0 / 333.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.1082, allocations: 0 / 333.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1083, allocations: 322.8 kB / 333.7 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.107e-05/0.1083, allocations: 4 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.606e-05/0.1084, allocations: 8 kB / 333.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.01e-05/0.1084, allocations: 4 kB / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1084, allocations: 0 / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001172/0.1085, allocations: 41.62 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1086, allocations: 8 kB / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1086, allocations: 0 / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1086, allocations: 0 / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.676e-05/0.1086, allocations: 0 / 333.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.1087, allocations: 4 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.1087, allocations: 4.125 kB / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.1087, allocations: 0 / 333.8 MB, free: 14.41 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0001068/0.1088, allocations: 197.1 kB / 333.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.916e-05/0.1089, allocations: 101 kB / 334 MB, free: 14.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.797e-05/0.109, allocations: 116.2 kB / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.014e-05/0.109, allocations: 176.3 kB / 334.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-05/0.1091, allocations: 180.3 kB / 334.5 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.367e-05/0.1092, allocations: 184.2 kB / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.1094, allocations: 413.2 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.434e-05/0.1095, allocations: 108.9 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.302e-05/0.1095, allocations: 108.9 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-05/0.1096, allocations: 176.3 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.606e-05/0.1097, allocations: 192.2 kB / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001117/0.1098, allocations: 180.3 kB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001134/0.1099, allocations: 180.2 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.1101, allocations: 311.6 kB / 336.3 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.549e-05/0.1101, allocations: 186.1 kB / 336.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.1102, allocations: 184.2 kB / 336.7 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.1103, allocations: 104.9 kB / 336.8 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.1104, allocations: 180.3 kB / 337 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.1105, allocations: 112.9 kB / 337.1 MB, free: 10.87 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.753e-05/0.1105, allocations: 91.58 kB / 337.2 MB, free: 10.78 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1105, allocations: 4 kB / 337.2 MB, free: 10.78 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003419/0.1109, allocations: 43.98 kB / 337.2 MB, free: 10.73 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0007756/0.1117, allocations: 0.8893 MB / 338.1 MB, free: 9.828 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.398e-05/0.1117, allocations: 4 kB / 338.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1118, allocations: 3.938 kB / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 2.114e-06/0.1118, allocations: 0 / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.1122, allocations: 0.5303 MB / 338.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006109/0.1128, allocations: 447.8 kB / 339.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.1131, allocations: 0.6848 MB / 339.8 MB, free: 8.09 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.535e-05/0.1131, allocations: 4 kB / 339.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.1132, allocations: 15.42 kB / 339.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1132, allocations: 0 / 339.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01377/0.1269, allocations: 1.808 MB / 341.6 MB, free: 6.266 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.1272, allocations: 248.3 kB / 341.8 MB, free: 6.016 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/1.99, allocations: 0 / 341.8 MB, free: 6.016 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine.fmu > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat does not exist to compare? outputFormat=mat