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.0008094/0.0008094, allocations: 91.38 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009441/0.0009441, allocations: 199.4 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 227.8 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001913/0.0001913, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07779/0.07799, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.001938/0.07996, allocations: 1.811 MB / 361.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003459/0.08033, allocations: 167.4 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.08045, allocations: 7.938 kB / 361.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.998e-05/0.08056, allocations: 11.86 kB / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.496e-05/0.08066, allocations: 39.69 kB / 361.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001412/0.08081, allocations: 39.91 kB / 361.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.081, allocations: 175.2 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.08126, allocations: 46.16 kB / 361.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.08132, allocations: 55.8 kB / 361.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.237e-05/0.08142, allocations: 75.62 kB / 361.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.08145, allocations: 4 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.074e-05/0.08148, allocations: 8 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.08151, allocations: 27.86 kB / 361.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.802e-05/0.0816, allocations: 97.31 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.08175, allocations: 171.5 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.08176, allocations: 0 / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08177, allocations: 0 / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.08178, allocations: 0 / 362.1 MB, free: 10.45 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.0004579/0.08224, allocations: 439 kB / 362.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.08228, allocations: 12.03 kB / 362.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.359e-05/0.08233, allocations: 46.73 kB / 362.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.08238, allocations: 24.69 kB / 362.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.08255, allocations: 216 kB / 362.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.08257, allocations: 12.38 kB / 362.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.08261, allocations: 16.38 kB / 362.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.08286, allocations: 189.9 kB / 363 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.398e-05/0.08294, allocations: 7.984 kB / 363 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.334e-05/0.08301, allocations: 8 kB / 363 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.08303, allocations: 4 kB / 363 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001547/0.08319, allocations: 99.88 kB / 363.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.08423, allocations: 0.9585 MB / 364.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.08436, allocations: 103.8 kB / 364.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.745e-05/0.08441, allocations: 34.58 kB / 364.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.08443, allocations: 4 kB / 364.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.08445, allocations: 42.64 kB / 364.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.08446, allocations: 0 / 364.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002547/0.08472, allocations: 125.3 kB / 364.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.08477, allocations: 106.8 kB / 364.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.08493, allocations: 215.6 kB / 364.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.08495, allocations: 25.7 kB / 364.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.08502, allocations: 143.9 kB / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.08506, allocations: 47.34 kB / 364.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.26e-05/0.0851, allocations: 29.7 kB / 364.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.285e-05/0.08519, allocations: 334.8 kB / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.431e-05/0.08526, allocations: 36.45 kB / 365.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.08537, allocations: 138.7 kB / 365.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.08557, allocations: 202 kB / 365.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.08558, allocations: 8 kB / 365.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002682/0.08585, allocations: 205.1 kB / 365.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.08588, allocations: 10.81 kB / 365.9 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.08589, allocations: 4 kB / 365.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.0859, allocations: 4.406 kB / 365.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.08605, allocations: 59.91 kB / 365.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.08606, allocations: 7.938 kB / 365.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.08617, allocations: 35.53 kB / 366 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.08619, allocations: 12 kB / 366 MB, free: 6.125 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 8.175e-05/0.08628, allocations: 134.8 kB / 366.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.08635, allocations: 15.81 kB / 366.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.0864, allocations: 20.92 kB / 366.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.08641, allocations: 4 kB / 366.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.08641, allocations: 4 kB / 366.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.08642, allocations: 3.938 kB / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.08678, allocations: 237.6 kB / 366.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.0868, allocations: 3.938 kB / 366.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.08693, allocations: 31.92 kB / 366.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.08694, allocations: 4 kB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.08696, allocations: 0 / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.08697, allocations: 4 kB / 366.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08697, allocations: 0 / 366.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002454/0.08722, allocations: 397.6 kB / 366.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.08728, allocations: 96.92 kB / 366.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.0873, allocations: 4 kB / 366.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.08744, allocations: 4 kB / 366.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.951e-05/0.08747, allocations: 15.86 kB / 366.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.08748, allocations: 4 kB / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.649e-05/0.08758, allocations: 149.5 kB / 367.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08759, allocations: 4 kB / 367.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.08794, allocations: 40 kB / 367.1 MB, free: 4.875 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.000421/0.08836, allocations: 0.9099 MB / 368 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001747/0.08855, allocations: 120 kB / 368.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.08856, allocations: 0 / 368.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.33e-05/0.08861, allocations: 35.92 kB / 368.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000467/0.08908, allocations: 27.92 kB / 368.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.09134, allocations: 2.76 MB / 371 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.09156, allocations: 0.7284 MB / 371.7 MB, free: 76 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.692e-05/0.09163, allocations: 17.95 kB / 371.7 MB, free: 60 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.268e-05/0.0917, allocations: 47.42 kB / 371.8 MB, free: 12 kB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09171, allocations: 0 / 371.8 MB, free: 12 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6848/0.7765, allocations: 3.146 MB / 374.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.7768, allocations: 217.8 kB / 375.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.387, allocations: 0 / 375.1 MB, free: 17.67 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