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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.685/1.685, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000845/0.000845, allocations: 92.64 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.54e-05/2.543e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1308, allocations: 50.43 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4811/0.612, allocations: 75.46 MB / 463 MB, free: 3.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.6123, allocations: 71.95 kB / 463.1 MB, free: 3.184 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01595/0.6283, allocations: 5.231 MB / 468.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6284, allocations: 0 / 468.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.6284, allocations: 0 / 468.3 MB, free: 13.96 MB / 346.7 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.0004706/0.6289, allocations: 348.3 kB / 468.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.6289, allocations: 8.031 kB / 468.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.466e-05/0.629, allocations: 12.67 kB / 468.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.6292, allocations: 163 kB / 468.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.6292, allocations: 0 / 468.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-06/0.6292, allocations: 0 / 468.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.48e-05/0.6293, allocations: 8 kB / 468.8 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.121e-05/0.6294, allocations: 37.62 kB / 468.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.6294, allocations: 0 / 468.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.6295, allocations: 0 / 468.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.6295, allocations: 3.953 kB / 468.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005759/0.6301, allocations: 453.6 kB / 469.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.6302, allocations: 169.1 kB / 469.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.294e-05/0.6302, allocations: 80.14 kB / 469.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.6303, allocations: 75.28 kB / 469.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.263e-05/0.6304, allocations: 113.8 kB / 469.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=0): time 1.272e-06/0.6304, allocations: 0 / 469.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=0): time 8.945e-05/0.6305, allocations: 29.66 kB / 469.8 MB, free: 12.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.6305, allocations: 81.11 kB / 469.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.6306, allocations: 101 kB / 470 MB, free: 12.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.6307, allocations: 25.7 kB / 470 MB, free: 12.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.653e-05/0.6307, allocations: 88.12 kB / 470.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.208e-06/0.6308, allocations: 0 / 470.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.6308, allocations: 3.938 kB / 470.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.6309, allocations: 310.8 kB / 470.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.6309, allocations: 0 / 470.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.623e-05/0.6309, allocations: 12 kB / 470.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.185e-05/0.631, allocations: 7.984 kB / 470.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.631, allocations: 0 / 470.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001217/0.6312, allocations: 41.55 kB / 470.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.6312, allocations: 9.094 kB / 470.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.6312, allocations: 0 / 470.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6312, allocations: 0 / 470.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.941e-05/0.6313, allocations: 3.984 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.6313, allocations: 4 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.436e-05/0.6313, allocations: 4.078 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.6314, allocations: 4 kB / 470.5 MB, free: 11.58 MB / 346.7 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 () * 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.000111/0.6315, allocations: 176.3 kB / 470.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.623e-05/0.6316, allocations: 134.9 kB / 470.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.6316, allocations: 109 kB / 470.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.274e-05/0.6317, allocations: 109 kB / 471 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.631e-05/0.6318, allocations: 188.2 kB / 471.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.627e-05/0.6319, allocations: 188.3 kB / 471.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.589e-05/0.6319, allocations: 176.3 kB / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.6322, allocations: 389.7 kB / 471.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.815e-05/0.6322, allocations: 109 kB / 472 MB, free: 9.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.945e-05/0.6323, allocations: 101 kB / 472.1 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.502e-05/0.6323, allocations: 184.2 kB / 472.3 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.954e-05/0.6324, allocations: 176.3 kB / 472.5 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.944e-05/0.6325, allocations: 180.3 kB / 472.6 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-05/0.6326, allocations: 180.2 kB / 472.8 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.6327, allocations: 315.7 kB / 473.1 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.524e-05/0.6328, allocations: 182 kB / 473.3 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.285e-05/0.6329, allocations: 184.2 kB / 473.5 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.633, allocations: 101 kB / 473.6 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.979e-05/0.6331, allocations: 184.2 kB / 473.8 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.6331, allocations: 101 kB / 473.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.342e-05/0.6332, allocations: 91.28 kB / 473.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.654e-06/0.6332, allocations: 0 / 473.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002951/0.6335, allocations: 55.81 kB / 474 MB, free: 7.82 MB / 346.7 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 () * 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.0008188/0.6343, allocations: 0.8962 MB / 474.9 MB, free: 6.914 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.679e-05/0.6344, allocations: 4 kB / 474.9 MB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.6344, allocations: 0 / 474.9 MB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.713e-06/0.6344, allocations: 0 / 474.9 MB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.6348, allocations: 0.5225 MB / 475.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003596/0.6351, allocations: 181.2 kB / 475.6 MB, free: 6.168 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.6354, allocations: 0.6807 MB / 476.3 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.92e-05/0.6355, allocations: 15.95 kB / 476.3 MB, free: 5.445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.6355, allocations: 11.44 kB / 476.3 MB, free: 5.434 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6356, allocations: 0 / 476.3 MB, free: 5.434 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.6576, allocations: 1.227 MB / 477.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002567/0.658, allocations: 187.4 kB / 477.7 MB, free: 4.016 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.492, allocations: 7.969 kB / 477.7 MB, free: 4.008 MB / 346.7 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