Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 191.6 kB / 24.49 MB, free: 3.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 51.92 kB / 371.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2352, allocations: 52.19 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.003139/0.2383, allocations: 2.009 MB / 425.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000335/0.2386, allocations: 155.4 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.609e-05/0.2387, allocations: 7.938 kB / 425.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.2389, allocations: 31.72 kB / 425.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.781e-05/0.239, allocations: 47.55 kB / 425.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.2391, allocations: 47.83 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.2393, allocations: 175.2 kB / 425.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2395, allocations: 53.14 kB / 425.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.794e-05/0.2395, allocations: 67.8 kB / 425.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.2397, allocations: 71.62 kB / 426 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.2397, allocations: 16 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.111e-05/0.2397, allocations: 12 kB / 426 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.2398, allocations: 31.86 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.2398, allocations: 75.64 kB / 426.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.2401, allocations: 177.5 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2401, allocations: 0 / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2401, allocations: 0 / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2401, allocations: 8 kB / 426.3 MB, free: 11.45 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.0005716/0.2407, allocations: 393.5 kB / 426.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.2407, allocations: 12.03 kB / 426.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.408e-05/0.2407, allocations: 4.188 kB / 426.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.608e-05/0.2408, allocations: 50.73 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.2408, allocations: 20.84 kB / 426.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.241, allocations: 153.6 kB / 426.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.241, allocations: 20.38 kB / 426.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.2411, allocations: 16.38 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.2414, allocations: 189.9 kB / 427.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.2414, allocations: 3.953 kB / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.2414, allocations: 8 kB / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.2414, allocations: 7.984 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.2416, allocations: 99.89 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.2428, allocations: 0.8914 MB / 428.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.243, allocations: 103.8 kB / 428.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.882e-05/0.243, allocations: 38.66 kB / 428.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.243, allocations: 4 kB / 428.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.2431, allocations: 34.56 kB / 428.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2431, allocations: 0 / 428.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003064/0.2434, allocations: 129.4 kB / 428.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.2434, allocations: 102.8 kB / 428.6 MB, free: 8.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.2436, allocations: 215.7 kB / 428.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2437, allocations: 25.7 kB / 428.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.2438, allocations: 140.1 kB / 428.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.8e-05/0.2438, allocations: 59.58 kB / 429 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.877e-05/0.2439, allocations: 41.91 kB / 429 MB, free: 8.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2441, allocations: 330.8 kB / 429.4 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.861e-05/0.2441, allocations: 36.45 kB / 429.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.2443, allocations: 151.7 kB / 429.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.2445, allocations: 198 kB / 429.7 MB, free: 7.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2445, allocations: 4 kB / 429.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003159/0.2449, allocations: 217.3 kB / 430 MB, free: 7.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.2449, allocations: 8 kB / 430 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.2449, allocations: 4 kB / 430 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.2449, allocations: 7.984 kB / 430 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.2451, allocations: 51.92 kB / 430 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.2451, allocations: 11.88 kB / 430 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2452, allocations: 23.84 kB / 430.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.2452, allocations: 8 kB / 430.1 MB, free: 7.316 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.0001124/0.2453, allocations: 142.1 kB / 430.2 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.2454, allocations: 15.91 kB / 430.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.013e-05/0.2454, allocations: 21.02 kB / 430.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2455, allocations: 4 kB / 430.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2455, allocations: 3.938 kB / 430.2 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2455, allocations: 0 / 430.2 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004157/0.2459, allocations: 204.6 kB / 430.4 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2459, allocations: 0 / 430.4 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.246, allocations: 31.92 kB / 430.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.246, allocations: 4 kB / 430.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.246, allocations: 4 kB / 430.5 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.246, allocations: 3.938 kB / 430.5 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.2461, allocations: 7.938 kB / 430.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003465/0.2464, allocations: 381.9 kB / 430.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.534e-05/0.2464, allocations: 23.91 kB / 430.9 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.2465, allocations: 0 / 430.9 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.2466, allocations: 8 kB / 430.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.2466, allocations: 15.86 kB / 430.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.2466, allocations: 0 / 430.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.2468, allocations: 149.5 kB / 431.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2468, allocations: 0 / 431.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003578/0.2471, allocations: 44 kB / 431.1 MB, free: 6.203 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.0006714/0.2478, allocations: 0.9139 MB / 432 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.248, allocations: 107.8 kB / 432.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.248, allocations: 0 / 432.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.268e-05/0.2481, allocations: 37.34 kB / 432.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.2486, allocations: 35.7 kB / 432.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.2514, allocations: 2.629 MB / 434.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.2515, allocations: 112.1 kB / 434.9 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.356e-05/0.2516, allocations: 25.94 kB / 435 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.677e-05/0.2517, allocations: 47.42 kB / 435 MB, free: 2.066 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2517, allocations: 0 / 435 MB, free: 2.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.276, allocations: 3.747 MB / 438.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.74, allocations: 4.062 kB / 438.8 MB, free: 14.48 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.SignConvention.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.951600007014349]