Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.001148/0.001148, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7447/0.7447, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 64.09 kB / 0.5019 GB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3595, allocations: 80.2 MB / 0.5802 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002128/0.3617, allocations: 0.7834 MB / 0.581 GB, free: 4.086 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.3633, allocations: 1.468 MB / 0.5824 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.182e-05/0.3634, allocations: 1.219 kB / 0.5824 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.3634, allocations: 8.531 kB / 0.5824 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.137e-05/0.3635, allocations: 3.938 kB / 0.5824 GB, free: 3.004 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005801/0.3641, allocations: 146.8 kB / 0.5826 GB, free: 2.938 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.3642, allocations: 48.31 kB / 0.5826 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.119e-05/0.3642, allocations: 3.719 kB / 0.5826 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.931e-05/0.3643, allocations: 32.44 kB / 0.5826 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.42e-05/0.3644, allocations: 34.19 kB / 0.5827 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.3645, allocations: 8.656 kB / 0.5827 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006372/0.3651, allocations: 317.2 kB / 0.583 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.3651, allocations: 14.58 kB / 0.583 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.791e-05/0.3652, allocations: 26.25 kB / 0.583 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003558/0.3656, allocations: 213.7 kB / 0.5832 GB, free: 2.715 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3656, allocations: 0.6562 kB / 0.5832 GB, free: 2.715 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3656, allocations: 1.094 kB / 0.5832 GB, free: 2.715 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.3656, allocations: 0 / 0.5832 GB, free: 2.715 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006328/0.3662, allocations: 402.9 kB / 0.5836 GB, free: 2.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3663, allocations: 9.281 kB / 0.5836 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.3663, allocations: 38.56 kB / 0.5837 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004742/0.3668, allocations: 76.75 kB / 0.5837 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.843e-05/0.3669, allocations: 175.6 kB / 0.5839 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.103e-05/0.3669, allocations: 3.906 kB / 0.5839 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.367, allocations: 8.844 kB / 0.5839 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.3673, allocations: 112.1 kB / 0.584 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3674, allocations: 0 / 0.584 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3674, allocations: 5.594 kB / 0.584 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3674, allocations: 1.031 kB / 0.584 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004927/0.3679, allocations: 102.1 kB / 0.5841 GB, free: 1.988 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004985/0.3684, allocations: 334 kB / 0.5844 GB, free: 1.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006915/0.3691, allocations: 154.5 kB / 0.5846 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.3694, allocations: 59.7 kB / 0.5846 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.3694, allocations: 0.9688 kB / 0.5846 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.3694, allocations: 36.31 kB / 0.5847 GB, free: 1.578 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.3694, allocations: 5.219 kB / 0.5847 GB, free: 1.574 MB / 430.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01895/0.3884, allocations: 2.826 MB / 0.5874 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.3885, allocations: 61.28 kB / 0.5875 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.3885, allocations: 102.2 kB / 0.5876 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.3886, allocations: 29.7 kB / 0.5876 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.529e-05/0.3886, allocations: 88.2 kB / 0.5877 GB, free: 464 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/0.3887, allocations: 46.66 kB / 0.5878 GB, free: 424 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.3889, allocations: 73.62 kB / 0.5878 GB, free: 396 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/0.3889, allocations: 314.7 kB / 0.5881 GB, free: 76 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007144/0.3896, allocations: 195.8 kB / 0.5883 GB, free: 28 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.3904, allocations: 189.5 kB / 0.5885 GB, free: 15.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.3919, allocations: 395.1 kB / 0.5889 GB, free: 15.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3919, allocations: 4.562 kB / 0.5889 GB, free: 15.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001779/0.3937, allocations: 480 kB / 0.5893 GB, free: 15.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3937, allocations: 5.125 kB / 0.5893 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3937, allocations: 2.141 kB / 0.5893 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.3937, allocations: 0 / 0.5893 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008861/0.3946, allocations: 113.9 kB / 0.5894 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.3946, allocations: 2.656 kB / 0.5895 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/0.3953, allocations: 45.41 kB / 0.5895 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.895e-05/0.3954, allocations: 24.22 kB / 0.5895 GB, free: 15.72 MB / 446.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 (13): * Single equations (assignments): 13 * 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 0.0001711/0.3955, allocations: 118.1 kB / 0.5896 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.56e-05/0.3956, allocations: 4.125 kB / 0.5896 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.516e-05/0.3957, allocations: 14.17 kB / 0.5896 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3957, allocations: 4.906 kB / 0.5897 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3957, allocations: 0.7969 kB / 0.5897 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3957, allocations: 5.141 kB / 0.5897 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.3981, allocations: 1.044 MB / 0.5907 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3981, allocations: 0 / 0.5907 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000851/0.3989, allocations: 113.5 kB / 0.5908 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3989, allocations: 0 / 0.5908 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.399, allocations: 29.7 kB / 0.5908 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.399, allocations: 4 kB / 0.5908 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.399, allocations: 0 / 0.5908 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.4015, allocations: 0.7784 MB / 0.5916 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/0.4017, allocations: 127.8 kB / 0.5917 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.25e-05/0.4018, allocations: 7.969 kB / 0.5917 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000692/0.4025, allocations: 44.22 kB / 0.5917 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4026, allocations: 30.83 kB / 0.5918 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.4026, allocations: 27.19 kB / 0.5918 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.351e-05/0.4027, allocations: 77.88 kB / 0.5919 GB, free: 13.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4027, allocations: 4 kB / 0.5919 GB, free: 13.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003875/0.4031, allocations: 59.14 kB / 0.5919 GB, free: 13.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.002762/0.4059, allocations: 1.336 MB / 0.5932 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4074, allocations: 431 kB / 0.5937 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4074, allocations: 1.062 kB / 0.5937 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007725/0.4082, allocations: 229 kB / 0.5939 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.4086, allocations: 12.55 kB / 0.5939 GB, free: 12.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008821/0.4174, allocations: 2.936 MB / 0.5968 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.4177, allocations: 0.6914 MB / 0.5974 GB, free: 9.723 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006607/0.4183, allocations: 90.39 kB / 0.5975 GB, free: 9.664 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.4186, allocations: 64.48 kB / 0.5976 GB, free: 9.613 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4186, allocations: 0 / 0.5976 GB, free: 9.613 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.4407, allocations: 4.52 MB / 0.602 GB, free: 7.223 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.408/7.849, allocations: 9.812 kB / 0.602 GB, free: 7.215 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.csv --start-time -1.5 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0012 IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)