Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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.0008874/0.0008874, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0009464/0.0009464, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.8601/0.8601, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.736e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002453/0.00247, allocations: 2.266 MB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008001/0.00327, allocations: 0.6192 MB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.003375, allocations: 11.94 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.003497, allocations: 39.59 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.003614, allocations: 83.27 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.003834, allocations: 63.84 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000227/0.00406, allocations: 294.4 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.004222, allocations: 71.3 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.004444, allocations: 163.6 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.004551, allocations: 79.78 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.004578, allocations: 20 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.004636, allocations: 24 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.506e-05/0.004671, allocations: 59.75 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.004733, allocations: 87.75 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.004998, allocations: 271 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.005, allocations: 0 / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.005002, allocations: 0 / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.005007, allocations: 0 / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005457/0.005552, allocations: 468.7 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.005597, allocations: 8.031 kB / 329.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.756e-05/0.005645, allocations: 62.72 kB / 329.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.005767, allocations: 32.75 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.005994, allocations: 182.1 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.006011, allocations: 16.88 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.006044, allocations: 24.33 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.00629, allocations: 200.6 kB / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.006302, allocations: 192 / 329.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.006319, allocations: 16.12 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.006324, allocations: 4 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.006738, allocations: 141.9 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006294/0.007368, allocations: 0.5406 MB / 330.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.007595, allocations: 175.3 kB / 330.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.007697, allocations: 92.81 kB / 330.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.007718, allocations: 4 kB / 330.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.007738, allocations: 38.56 kB / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.00774, allocations: 0 / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001264/0.009004, allocations: 0.9149 MB / 331.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.009037, allocations: 59.33 kB / 331.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.009166, allocations: 196 kB / 331.8 MB, free: 8.457 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.009181, allocations: 33.7 kB / 331.8 MB, free: 8.418 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.655e-05/0.009248, allocations: 140.8 kB / 332 MB, free: 8.277 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.009299, allocations: 115 kB / 332.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.009356, allocations: 57.45 kB / 332.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.22e-05/0.009439, allocations: 338.8 kB / 332.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.779e-05/0.009536, allocations: 67.97 kB / 332.5 MB, free: 7.695 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.009643, allocations: 107.2 kB / 332.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.009848, allocations: 201 kB / 332.9 MB, free: 7.379 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.00985, allocations: 0 / 332.9 MB, free: 7.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000314/0.01016, allocations: 291.2 kB / 333.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.01018, allocations: 4 kB / 333.1 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.01018, allocations: 0 / 333.1 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001289/0.01031, allocations: 44.89 kB / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.01046, allocations: 59.91 kB / 333.2 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.0115, allocations: 1.633 MB / 334.9 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.434e-05/0.01156, allocations: 8.031 kB / 334.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.01157, allocations: 12 kB / 334.9 MB, free: 5.211 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.01167, allocations: 141.8 kB / 335 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.0117, allocations: 23.84 kB / 335.1 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.01173, allocations: 38.58 kB / 335.1 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01174, allocations: 7.938 kB / 335.1 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.01174, allocations: 0 / 335.1 MB, free: 4.992 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.01175, allocations: 7.984 kB / 335.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.01246, allocations: 0.7107 MB / 335.8 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.01246, allocations: 7.969 kB / 335.8 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.01261, allocations: 63.91 kB / 335.9 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-05/0.01268, allocations: 28.84 kB / 335.9 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.01269, allocations: 8 kB / 335.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009701/0.01366, allocations: 1.381 MB / 337.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01366, allocations: 4.062 kB / 337.3 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.0141, allocations: 479.4 kB / 337.8 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.01412, allocations: 24.03 kB / 337.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.01414, allocations: 4 kB / 337.8 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.255e-05/0.01421, allocations: 12.03 kB / 337.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.01426, allocations: 27.94 kB / 337.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.01427, allocations: 12 kB / 337.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.984e-05/0.01434, allocations: 132.4 kB / 338 MB, free: 1.895 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01434, allocations: 4 kB / 338 MB, free: 1.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.01459, allocations: 67.94 kB / 338.1 MB, free: 1.824 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006095/0.0152, allocations: 1.008 MB / 339.1 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.01561, allocations: 338.6 kB / 339.4 MB, free: 440 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.01561, allocations: 4.125 kB / 339.4 MB, free: 436 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.0158, allocations: 230.5 kB / 339.6 MB, free: 192 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.01609, allocations: 46.89 kB / 339.7 MB, free: 148 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.01828, allocations: 2.657 MB / 342.3 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.459e-05/0.01838, allocations: 150.8 kB / 342.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.767e-05/0.01844, allocations: 18.3 kB / 342.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.01852, allocations: 72.47 kB / 342.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01852, allocations: 3.938 kB / 342.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.03922, allocations: 6.144 MB / 348.7 MB, free: 7.117 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.852/6.891, allocations: 15.98 kB / 348.7 MB, free: 7.102 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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: 8.472821519710124]