Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_0_0_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.001174/0.001174, allocations: 94.94 kB / 16.3 MB, free: 5.609 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.001384/0.001384, allocations: 187.9 kB / 17.2 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.473/1.473, allocations: 223.2 MB / 241.1 MB, free: 408 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002837, allocations: 5.969 kB / 300.8 MB, free: 6.395 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 50.4 MB / 351.2 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.000568/0.1029, allocations: 234 kB / 351.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1045, allocations: 1.32 MB / 352.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1046, allocations: 0 / 352.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1046, allocations: 0 / 352.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.995e-05/0.1046, allocations: 0 / 352.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.1051, allocations: 134.9 kB / 352.9 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.284e-05/0.1052, allocations: 15.97 kB / 352.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.1052, allocations: 4 kB / 352.9 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.92e-05/0.1053, allocations: 7.938 kB / 352.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.342e-05/0.1053, allocations: 11.98 kB / 352.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1054, allocations: 0 / 352.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1055, allocations: 91.86 kB / 353 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.1056, allocations: 0 / 353 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.1056, allocations: 33.7 kB / 353.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.1058, allocations: 83.88 kB / 353.1 MB, free: 2.039 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1058, allocations: 0 / 353.1 MB, free: 2.039 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1058, allocations: 0 / 353.1 MB, free: 2.039 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1058, allocations: 4 kB / 353.1 MB, free: 2.035 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003861/0.1062, allocations: 343.2 kB / 353.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.1063, allocations: 8.031 kB / 353.5 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.573e-05/0.1063, allocations: 30.56 kB / 353.5 MB, free: 1.605 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.307e-05/0.1064, allocations: 11.95 kB / 353.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.1066, allocations: 163.4 kB / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.1067, allocations: 0 / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1067, allocations: 3.938 kB / 353.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.1068, allocations: 37.69 kB / 353.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1068, allocations: 0 / 353.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1068, allocations: 4 kB / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1068, allocations: 3.953 kB / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.19e-05/0.1069, allocations: 3.984 kB / 353.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.1073, allocations: 473 kB / 354.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.019e-05/0.1074, allocations: 177.1 kB / 354.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.1074, allocations: 75.28 kB / 354.5 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.091e-05/0.1075, allocations: 109.8 kB / 354.6 MB, free: 440 kB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.1075, allocations: 0 / 354.6 MB, free: 440 kB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 6.895e-05/0.1076, allocations: 33.56 kB / 354.6 MB, free: 400 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.1077, allocations: 152.4 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.1078, allocations: 117.8 kB / 354.9 MB, free: 100 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1078, allocations: 25.7 kB / 354.9 MB, free: 68 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.198e-05/0.1079, allocations: 80.14 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-06/0.1079, allocations: 3.938 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.1079, allocations: 0 / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.108, allocations: 322.8 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.108, allocations: 32 / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.482e-05/0.1081, allocations: 4 kB / 355.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.86e-05/0.1081, allocations: 96 / 355.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1081, allocations: 4 kB / 355.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001063/0.1082, allocations: 33.7 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.1082, allocations: 4 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1082, allocations: 7.984 kB / 355.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1083, allocations: 3.953 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.069e-05/0.1083, allocations: 0 / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.1083, allocations: 0 / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.324e-05/0.1084, allocations: 15.84 kB / 355.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.1084, allocations: 0 / 355.3 MB, free: 15.58 MB / 302.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.0001045/0.1085, allocations: 194 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.1086, allocations: 105 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.072e-05/0.1086, allocations: 108.5 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.532e-05/0.1087, allocations: 184.2 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.394e-05/0.1088, allocations: 180.2 kB / 356.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.48e-05/0.1089, allocations: 188.2 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003498/0.1092, allocations: 405.2 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.239e-05/0.1093, allocations: 101 kB / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.1093, allocations: 112.9 kB / 356.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.944e-05/0.1094, allocations: 180.3 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.1095, allocations: 180.2 kB / 357.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.295e-05/0.1095, allocations: 180.5 kB / 357.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-05/0.1096, allocations: 176.3 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001246/0.1097, allocations: 315.7 kB / 357.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.379e-05/0.1098, allocations: 186 kB / 358.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.575e-05/0.1099, allocations: 180.3 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.11, allocations: 109 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.1101, allocations: 188.2 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.1101, allocations: 101 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.997e-05/0.1102, allocations: 91.23 kB / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1102, allocations: 0 / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.1105, allocations: 35.98 kB / 358.8 MB, free: 11.93 MB / 302.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.0005907/0.1111, allocations: 0.8788 MB / 359.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.716e-05/0.1112, allocations: 11.94 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1112, allocations: 0 / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.557e-06/0.1112, allocations: 4 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.1116, allocations: 0.5224 MB / 360.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/0.1119, allocations: 219.6 kB / 360.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.1122, allocations: 0.677 MB / 361.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.702e-05/0.1122, allocations: 11.98 kB / 361.1 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.109e-05/0.1123, allocations: 7.438 kB / 361.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1123, allocations: 0 / 361.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01114/0.1234, allocations: 1.564 MB / 362.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.1236, allocations: 242.9 kB / 362.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.825, allocations: 0 / 362.9 MB, free: 7.852 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat does not exist to compare? outputFormat=mat