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.0009602/0.0009602, allocations: 98.11 kB / 16.94 MB, free: 6.441 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.001133/0.001133, allocations: 188.6 kB / 17.83 MB, free: 6.008 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.518/1.518, 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.0004287/0.0004288, allocations: 11.44 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1018, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.002272/0.1041, allocations: 1.818 MB / 330.2 MB, free: 2.176 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1053, allocations: 0.692 MB / 330.9 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.1053, allocations: 3.938 kB / 330.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.575e-05/0.1054, allocations: 4 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.1055, allocations: 4 kB / 330.9 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.106, allocations: 175.6 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.221e-05/0.1061, allocations: 15.91 kB / 331.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.357e-05/0.1061, allocations: 4 kB / 331.1 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.958e-05/0.1062, allocations: 11.98 kB / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.809e-05/0.1062, allocations: 7.938 kB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.1062, allocations: 0 / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.1064, allocations: 115.8 kB / 331.3 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.235e-05/0.1065, allocations: 15.91 kB / 331.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.956e-05/0.1065, allocations: 25.7 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.1067, allocations: 83.88 kB / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1067, allocations: 0 / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1067, allocations: 0 / 331.4 MB, free: 1.012 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1067, allocations: 0 / 331.4 MB, free: 1.012 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.0003804/0.1071, allocations: 351.5 kB / 331.7 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1071, allocations: 8.031 kB / 331.7 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/0.1072, allocations: 34.56 kB / 331.8 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.1073, allocations: 0 / 331.8 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.1074, allocations: 182.9 kB / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.1075, allocations: 0 / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-06/0.1075, allocations: 0 / 332 MB, free: 360 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.344e-05/0.1076, allocations: 37.64 kB / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1076, allocations: 0 / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.1076, allocations: 0 / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1076, allocations: 0 / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.367e-05/0.1076, allocations: 11.97 kB / 332 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000421/0.1081, allocations: 400.1 kB / 332.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.929e-05/0.1082, allocations: 165.1 kB / 332.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.1082, allocations: 79.22 kB / 332.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/0.1083, allocations: 109.8 kB / 332.7 MB, free: 15.49 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.1083, allocations: 4 kB / 332.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 7.265e-05/0.1083, allocations: 29.7 kB / 332.8 MB, free: 15.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.1084, allocations: 156.4 kB / 332.9 MB, free: 15.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1085, allocations: 117.8 kB / 333 MB, free: 15.15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.1086, allocations: 29.64 kB / 333.1 MB, free: 15.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.1086, allocations: 84.05 kB / 333.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-06/0.1086, allocations: 0 / 333.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-06/0.1086, allocations: 0 / 333.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1088, allocations: 326.8 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.1088, allocations: 4 kB / 333.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.546e-05/0.1088, allocations: 7.938 kB / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.762e-05/0.1089, allocations: 0 / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1089, allocations: 0 / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001051/0.109, allocations: 49.62 kB / 333.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.109, allocations: 4 kB / 333.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.109, allocations: 0 / 333.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.109, allocations: 0 / 333.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.024e-05/0.1091, allocations: 4 kB / 333.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1091, allocations: 4.125 kB / 333.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.012e-05/0.1091, allocations: 0 / 333.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.1092, allocations: 0 / 333.5 MB, free: 14.62 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.0001016/0.1093, allocations: 193.1 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.008e-05/0.1093, allocations: 108.9 kB / 333.8 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.1094, allocations: 112.3 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.578e-05/0.1094, allocations: 184.2 kB / 334.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.013e-05/0.1095, allocations: 176.3 kB / 334.3 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.371e-05/0.1096, allocations: 180.2 kB / 334.5 MB, free: 13.65 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.1099, allocations: 417.1 kB / 334.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-05/0.1099, allocations: 105 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.11, allocations: 104.9 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.827e-05/0.11, allocations: 184.3 kB / 335.3 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.861e-05/0.1101, allocations: 176.3 kB / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.993e-05/0.1102, allocations: 188.2 kB / 335.6 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.574e-05/0.1102, allocations: 176.3 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001467/0.1104, allocations: 315.7 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.1105, allocations: 186 kB / 336.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.1106, allocations: 184.2 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.1107, allocations: 101 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/0.1108, allocations: 184.2 kB / 336.7 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.764e-05/0.1108, allocations: 109 kB / 336.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.131e-05/0.1109, allocations: 95.22 kB / 336.9 MB, free: 11 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1109, allocations: 0 / 336.9 MB, free: 11 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1112, allocations: 39.98 kB / 337 MB, free: 10.96 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.0008161/0.112, allocations: 0.903 MB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 6.811e-05/0.1121, allocations: 4.344 kB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1121, allocations: 0 / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.1121, allocations: 0 / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.1124, allocations: 0.5225 MB / 338.4 MB, free: 9.508 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000601/0.113, allocations: 443.8 kB / 338.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.1133, allocations: 0.6848 MB / 339.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.042e-05/0.1134, allocations: 11.92 kB / 339.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.1134, allocations: 11.44 kB / 339.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1134, allocations: 0 / 339.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01293/0.1263, allocations: 1.81 MB / 341.4 MB, free: 6.488 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.1266, allocations: 231 kB / 341.6 MB, free: 6.25 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/1.855, allocations: 8.062 kB / 341.6 MB, free: 6.242 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