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.001041/0.001041, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 59.92 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07629/0.07739, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.002769/0.08019, allocations: 2.103 MB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002852/0.08049, allocations: 171.3 kB / 359.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.76e-05/0.08057, allocations: 4 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000107/0.08069, allocations: 23.73 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.563e-05/0.08078, allocations: 51.56 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.08099, allocations: 47.81 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.0812, allocations: 175.3 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.08134, allocations: 66.2 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.58e-05/0.0814, allocations: 63.78 kB / 360.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.423e-05/0.0815, allocations: 75.62 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.08153, allocations: 16 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.556e-05/0.08156, allocations: 12 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.08159, allocations: 31.86 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.08166, allocations: 83.59 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.08183, allocations: 183.6 kB / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.08184, allocations: 0 / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08185, allocations: 0 / 360.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.08186, allocations: 0 / 360.7 MB, free: 10.9 MB / 302.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.0004826/0.08234, allocations: 458.9 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.08238, allocations: 12.03 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.08242, allocations: 54.67 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.08246, allocations: 20.75 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.08264, allocations: 212.1 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.08265, allocations: 12.38 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.08269, allocations: 20.28 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.08293, allocations: 182 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.08295, allocations: 11.88 kB / 361.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.08297, allocations: 12 kB / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.08298, allocations: 4 kB / 361.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.08314, allocations: 99.88 kB / 361.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009942/0.08414, allocations: 0.9507 MB / 362.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.08427, allocations: 107.8 kB / 362.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.08442, allocations: 46.45 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.08443, allocations: 8.078 kB / 362.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.08446, allocations: 34.56 kB / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.08446, allocations: 0 / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002474/0.08471, allocations: 121.4 kB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.08476, allocations: 110.8 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.08493, allocations: 211.7 kB / 363.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.08495, allocations: 25.7 kB / 363.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/0.08502, allocations: 143.8 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.08506, allocations: 55.33 kB / 363.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.08511, allocations: 41.95 kB / 363.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.616e-05/0.0852, allocations: 330.8 kB / 363.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.8e-05/0.08527, allocations: 36.45 kB / 363.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.08537, allocations: 138.7 kB / 364.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.08556, allocations: 202 kB / 364.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.08557, allocations: 0 / 364.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002627/0.08583, allocations: 221.2 kB / 364.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.08585, allocations: 6.969 kB / 364.5 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.08586, allocations: 4 kB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.08588, allocations: 8 kB / 364.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.08602, allocations: 55.91 kB / 364.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.08604, allocations: 7.938 kB / 364.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.08615, allocations: 35.62 kB / 364.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.08618, allocations: 8 kB / 364.6 MB, free: 6.535 MB / 302.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.0001718/0.08636, allocations: 139.1 kB / 364.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-05/0.08643, allocations: 15.81 kB / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.028e-05/0.08648, allocations: 24.92 kB / 364.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.08649, allocations: 0 / 364.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.08649, allocations: 0 / 364.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.0865, allocations: 7.938 kB / 364.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003547/0.08686, allocations: 237.6 kB / 365 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.08687, allocations: 4 kB / 365 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.08701, allocations: 27.98 kB / 365.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.08702, allocations: 4 kB / 365.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.08704, allocations: 0 / 365.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.08704, allocations: 4 kB / 365.1 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.08705, allocations: 11.81 kB / 365.1 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.0873, allocations: 381.8 kB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.08736, allocations: 100.9 kB / 365.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.08739, allocations: 7.984 kB / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.08754, allocations: 4 kB / 365.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.039e-05/0.08756, allocations: 7.938 kB / 365.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/0.08757, allocations: 7.984 kB / 365.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.79e-05/0.08768, allocations: 149.5 kB / 365.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08768, allocations: 0 / 365.7 MB, free: 5.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003373/0.08802, allocations: 40 kB / 365.8 MB, free: 5.289 MB / 302.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.000534/0.08856, allocations: 0.9138 MB / 366.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.08875, allocations: 120.8 kB / 366.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.08876, allocations: 128 / 366.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.641e-05/0.08881, allocations: 43.92 kB / 366.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.08928, allocations: 28.58 kB / 366.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.09153, allocations: 2.615 MB / 369.5 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.09176, allocations: 0.7203 MB / 370.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.71e-05/0.09183, allocations: 29.92 kB / 370.2 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.202e-05/0.0919, allocations: 51.42 kB / 370.3 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of SimCode: time 4.248e-06/0.09191, allocations: 0 / 370.3 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.892/1.984, allocations: 3.383 MB / 373.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/12.38, allocations: 8.312 kB / 373.7 MB, free: 20.07 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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