Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002135/0.002135, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 47.92 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2552, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.003323/0.2585, allocations: 2.127 MB / 434 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000355/0.2588, allocations: 167.4 kB / 434.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.496e-05/0.2589, allocations: 7.938 kB / 434.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.259, allocations: 27.72 kB / 434.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.794e-05/0.2591, allocations: 47.56 kB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.2593, allocations: 47.89 kB / 434.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.2596, allocations: 183.2 kB / 434.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2597, allocations: 42.41 kB / 434.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.2598, allocations: 63.78 kB / 434.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.2599, allocations: 71.64 kB / 434.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.2599, allocations: 12 kB / 434.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.736e-05/0.2599, allocations: 16 kB / 434.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.26, allocations: 39.83 kB / 434.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.975e-05/0.2601, allocations: 83.61 kB / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.2603, allocations: 179.6 kB / 435 MB, free: 3.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2603, allocations: 4 kB / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2603, allocations: 0 / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2603, allocations: 3.984 kB / 435 MB, free: 3.766 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.0005833/0.2609, allocations: 393.5 kB / 435.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2609, allocations: 12.03 kB / 435.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.478e-05/0.261, allocations: 7.969 kB / 435.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.261, allocations: 50.73 kB / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.2611, allocations: 24.8 kB / 435.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.2613, allocations: 156.2 kB / 435.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.2613, allocations: 8.375 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.2614, allocations: 24.33 kB / 435.7 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.2617, allocations: 186 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2617, allocations: 4 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.2617, allocations: 8 kB / 435.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2617, allocations: 7.938 kB / 435.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.2619, allocations: 103.9 kB / 436 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.2632, allocations: 0.9148 MB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.2633, allocations: 103.7 kB / 437 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.925e-05/0.2634, allocations: 38.75 kB / 437 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.2634, allocations: 4 kB / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.2634, allocations: 38.56 kB / 437.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.2634, allocations: 0 / 437.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003001/0.2637, allocations: 129.4 kB / 437.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.2638, allocations: 106.8 kB / 437.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.264, allocations: 207.7 kB / 437.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.264, allocations: 33.7 kB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2641, allocations: 144 kB / 437.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.2641, allocations: 47.64 kB / 437.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/0.2642, allocations: 49.89 kB / 437.8 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2643, allocations: 326.8 kB / 438.1 MB, free: 416 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.879e-05/0.2644, allocations: 36.45 kB / 438.1 MB, free: 380 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.2646, allocations: 146.6 kB / 438.3 MB, free: 184 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.2648, allocations: 197.5 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2648, allocations: 4 kB / 438.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003118/0.2651, allocations: 222.1 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2651, allocations: 4 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2652, allocations: 7.984 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.2652, allocations: 4 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.2653, allocations: 51.86 kB / 438.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.2653, allocations: 7.938 kB / 438.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.2655, allocations: 31.73 kB / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.2655, allocations: 15.94 kB / 438.8 MB, free: 15.59 MB / 350.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.0001144/0.2656, allocations: 145.8 kB / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-05/0.2657, allocations: 15.91 kB / 439 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.02e-05/0.2657, allocations: 25.03 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2657, allocations: 0 / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.2657, allocations: 11.92 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2657, allocations: 4 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.2661, allocations: 200.7 kB / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2661, allocations: 4 kB / 439.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.2663, allocations: 35.86 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2663, allocations: 0 / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.2663, allocations: 7.984 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.2663, allocations: 4 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.2663, allocations: 3.938 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2666, allocations: 378 kB / 439.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/0.2667, allocations: 23.83 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.2667, allocations: 64 / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.2668, allocations: 12 kB / 439.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.2668, allocations: 11.86 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.2669, allocations: 4 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.267, allocations: 153.5 kB / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.267, allocations: 0 / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.2673, allocations: 39.95 kB / 439.9 MB, free: 14.46 MB / 350.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.0006718/0.268, allocations: 0.918 MB / 440.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.2682, allocations: 103.8 kB / 440.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2682, allocations: 0.8125 kB / 440.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/0.2683, allocations: 35.92 kB / 440.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.2688, allocations: 32.53 kB / 441 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.272, allocations: 2.632 MB / 443.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.2724, allocations: 0.7242 MB / 444.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.651e-05/0.2724, allocations: 25.92 kB / 444.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.2726, allocations: 51.36 kB / 444.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2726, allocations: 0 / 444.4 MB, free: 9.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/0.2985, allocations: 3.738 MB / 448.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.91, allocations: 4.062 kB / 448.1 MB, free: 6.125 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_SignConvention_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_SignConvention.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.SignConvention_res.mat","/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_4.1.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: 13.272872114030179]