Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.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.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 118.8 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.00174/0.00174, allocations: 197.2 kB / 18.73 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.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 63.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2919, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.003619/0.2956, allocations: 2.121 MB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004075/0.296, allocations: 155.4 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.2962, allocations: 7.938 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.2963, allocations: 31.72 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.424e-05/0.2964, allocations: 47.55 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.2966, allocations: 39.95 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002722/0.2969, allocations: 179.2 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.2971, allocations: 62.25 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.2972, allocations: 63.73 kB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2973, allocations: 79.62 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.2974, allocations: 12 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.881e-05/0.2974, allocations: 20 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.787e-05/0.2975, allocations: 31.86 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.2976, allocations: 83.59 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.2978, allocations: 178.2 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2978, allocations: 0 / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2979, allocations: 0 / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.2979, allocations: 0 / 411.8 MB, free: 14.44 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006921/0.2986, allocations: 466.7 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.2986, allocations: 12.03 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.593e-05/0.2987, allocations: 46.73 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.2987, allocations: 24.8 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.2991, allocations: 224 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.2991, allocations: 12.16 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.2991, allocations: 24.33 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.2994, allocations: 186.2 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2995, allocations: 0 / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.2995, allocations: 8 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.2995, allocations: 11.92 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.2997, allocations: 107.8 kB / 412.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.3011, allocations: 0.9431 MB / 413.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.3012, allocations: 103.8 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.379e-05/0.3013, allocations: 46.66 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.3013, allocations: 4 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.3014, allocations: 38.5 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.3014, allocations: 3.938 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003103/0.3017, allocations: 125.5 kB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.3018, allocations: 110.8 kB / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.302, allocations: 203.8 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.302, allocations: 29.7 kB / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3021, allocations: 144 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.3022, allocations: 51.58 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.3023, allocations: 49.89 kB / 414.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.3024, allocations: 326.8 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.913e-05/0.3025, allocations: 36.45 kB / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3027, allocations: 142.6 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.3029, allocations: 206 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3029, allocations: 0 / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003289/0.3033, allocations: 221.2 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.3033, allocations: 4 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3033, allocations: 4 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3033, allocations: 8 kB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.3035, allocations: 43.92 kB / 415.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3035, allocations: 8 kB / 415.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.3036, allocations: 40.02 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.3037, allocations: 16 kB / 415.8 MB, free: 10.05 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (28): * Single equations (assignments): 28 * 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.0001232/0.3038, allocations: 137.7 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.3039, allocations: 19.91 kB / 416 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.865e-05/0.3039, allocations: 20.94 kB / 416 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3039, allocations: 0 / 416 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3039, allocations: 4 kB / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.304, allocations: 7.922 kB / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.3044, allocations: 229.6 kB / 416.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3044, allocations: 4 kB / 416.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.3046, allocations: 35.92 kB / 416.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.3046, allocations: 0 / 416.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3046, allocations: 7.984 kB / 416.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3046, allocations: 0 / 416.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3046, allocations: 0 / 416.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.305, allocations: 385.8 kB / 416.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.458e-05/0.3051, allocations: 100.9 kB / 416.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.3052, allocations: 4 kB / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.3053, allocations: 4.062 kB / 416.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.3053, allocations: 15.92 kB / 416.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.3054, allocations: 0 / 416.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.3055, allocations: 149.5 kB / 416.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3055, allocations: 4 kB / 416.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003693/0.3059, allocations: 47.89 kB / 417 MB, free: 8.793 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (mass1.s,mass1.v,mass2.s,mass2.v,mass3.s,mass3.v) * 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 (12): * Single equations (assignments): 12 * 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.0007641/0.3067, allocations: 0.9131 MB / 417.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002396/0.3069, allocations: 105 kB / 418 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3069, allocations: 4 kB / 418 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.011e-05/0.307, allocations: 40.2 kB / 418 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.3075, allocations: 38.22 kB / 418.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.3106, allocations: 2.621 MB / 420.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.3111, allocations: 0.7242 MB / 421.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.123e-05/0.3112, allocations: 21.94 kB / 421.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.182e-05/0.3113, allocations: 55.58 kB / 421.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3113, allocations: 0 / 421.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.3394, allocations: 3.462 MB / 424.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.041/8.38, allocations: 12.08 kB / 424.9 MB, free: 0.6758 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/SignConvention/SignConvention.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches