Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001333/0.001333, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2305, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001497/0.2321, allocations: 0.4888 MB / 409.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.2339, allocations: 1.438 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.2339, allocations: 0 / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.431e-05/0.234, allocations: 0 / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.786e-05/0.234, allocations: 0 / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.2347, allocations: 194.6 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.478e-05/0.2347, allocations: 15.98 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.2348, allocations: 0 / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.332e-05/0.2348, allocations: 15.88 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.194e-05/0.2349, allocations: 15.92 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.2349, allocations: 0 / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002689/0.2352, allocations: 171.8 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.2352, allocations: 0 / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.2352, allocations: 15.92 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.2355, allocations: 118.7 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2355, allocations: 8 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2355, allocations: 0 / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2355, allocations: 0 / 411.2 MB, free: 15.03 MB / 334.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.0003486/0.2358, allocations: 351.3 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2359, allocations: 8.031 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.2359, allocations: 34.75 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.2361, allocations: 4.938 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.2362, allocations: 160.4 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.2362, allocations: 384 / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.2362, allocations: 15.92 kB / 411.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.698e-05/0.2363, allocations: 29.7 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2364, allocations: 0 / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.2364, allocations: 0 / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2364, allocations: 3.938 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.283e-05/0.2364, allocations: 4 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004112/0.2368, allocations: 476.9 kB / 412.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.645e-05/0.2369, allocations: 173.2 kB / 412.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.2369, allocations: 80.14 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.237, allocations: 79.22 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.237, allocations: 109.8 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.237, allocations: 0 / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 9.255e-05/0.2371, allocations: 33.7 kB / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.2372, allocations: 156.4 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2373, allocations: 105.8 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.2373, allocations: 25.7 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.2374, allocations: 96.06 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.2374, allocations: 0 / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.2375, allocations: 17.75 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2376, allocations: 314.8 kB / 413.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.451e-05/0.2376, allocations: 8 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.452e-05/0.2376, allocations: 3.984 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.545e-05/0.2376, allocations: 16.8 kB / 413.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2376, allocations: 0 / 413.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.853e-05/0.2378, allocations: 37.66 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.2378, allocations: 4 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2378, allocations: 0 / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.2378, allocations: 3.938 kB / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.39e-05/0.2378, allocations: 8.125 kB / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2379, allocations: 0 / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.143e-05/0.2379, allocations: 0 / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.2379, allocations: 7.984 kB / 413.5 MB, free: 12.45 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.499e-05/0.238, allocations: 185.1 kB / 413.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.2381, allocations: 112.9 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.41e-05/0.2381, allocations: 104.5 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.273e-05/0.2382, allocations: 184.2 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.715e-05/0.2382, allocations: 184.2 kB / 414.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.212e-05/0.2383, allocations: 176.3 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.2385, allocations: 413.3 kB / 414.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.964e-05/0.2385, allocations: 105 kB / 415 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.2386, allocations: 104.9 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.211e-05/0.2386, allocations: 184.2 kB / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/0.2387, allocations: 188.2 kB / 415.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-05/0.2387, allocations: 180.4 kB / 415.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-05/0.2388, allocations: 180.3 kB / 415.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.2389, allocations: 315.6 kB / 416.1 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.239, allocations: 182.1 kB / 416.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.2391, allocations: 188.2 kB / 416.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.478e-05/0.2392, allocations: 101 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.2392, allocations: 180.2 kB / 416.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.2393, allocations: 105 kB / 416.8 MB, free: 8.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.468e-05/0.2393, allocations: 91.27 kB / 416.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2393, allocations: 0 / 416.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.2396, allocations: 43.88 kB / 417 MB, free: 8.785 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006488/0.2403, allocations: 0.8883 MB / 417.9 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.652e-05/0.2403, allocations: 4 kB / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2403, allocations: 0 / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.382e-06/0.2404, allocations: 0 / 417.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.2407, allocations: 459.8 kB / 418.3 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.2411, allocations: 205.8 kB / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002171/0.2413, allocations: 0.6768 MB / 419.2 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.331e-05/0.2414, allocations: 7.984 kB / 419.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.452e-05/0.2414, allocations: 11.44 kB / 419.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2414, allocations: 0 / 419.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.2593, allocations: 1.869 MB / 421.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.548, allocations: 15.31 kB / 421.1 MB, free: 4.691 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches