Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008205/0.0008205, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008128/0.0008128, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8854/0.8854, allocations: 177 MB / 204.1 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] 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.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.343e-05, allocations: 2.281 kB / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002663/0.002687, allocations: 2.257 MB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009624/0.003649, allocations: 0.6154 MB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.003785, allocations: 7.938 kB / 327.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.003913, allocations: 35.64 kB / 327.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.00406, allocations: 83.28 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.0043, allocations: 75.7 kB / 327.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.004545, allocations: 282.6 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.004706, allocations: 79.22 kB / 327.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.005004, allocations: 159.6 kB / 328.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.005123, allocations: 83.72 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.841e-05/0.005152, allocations: 20 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.105e-05/0.005213, allocations: 35.97 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.005243, allocations: 43.83 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.622e-05/0.005309, allocations: 87.77 kB / 328.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.005572, allocations: 267.1 kB / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.005574, allocations: 4 kB / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005575, allocations: 0 / 328.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.00558, allocations: 3.938 kB / 328.6 MB, free: 11.64 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.0005842/0.006164, allocations: 461.5 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.006207, allocations: 15.98 kB / 329.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.064e-05/0.006258, allocations: 62.72 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.006383, allocations: 40.73 kB / 329.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.006659, allocations: 178.2 kB / 329.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.006675, allocations: 12.88 kB / 329.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/0.006714, allocations: 28.33 kB / 329.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.006978, allocations: 192.6 kB / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.006993, allocations: 4.188 kB / 329.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.007011, allocations: 16.12 kB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.007019, allocations: 8 kB / 329.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.007207, allocations: 141.8 kB / 329.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/0.008014, allocations: 0.5367 MB / 330.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.008222, allocations: 170.4 kB / 330.5 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.008349, allocations: 91.78 kB / 330.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.008367, allocations: 4.031 kB / 330.6 MB, free: 9.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.008386, allocations: 38.56 kB / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.008388, allocations: 0 / 330.6 MB, free: 9.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001495/0.009882, allocations: 0.9255 MB / 331.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.009925, allocations: 55.41 kB / 331.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.01006, allocations: 195.4 kB / 331.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.01008, allocations: 33.7 kB / 331.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.981e-05/0.01015, allocations: 140.8 kB / 331.9 MB, free: 8.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.01021, allocations: 123 kB / 332.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/0.01027, allocations: 57.45 kB / 332.1 MB, free: 7.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.531e-05/0.01035, allocations: 334.8 kB / 332.4 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.903e-05/0.01044, allocations: 67.97 kB / 332.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.01054, allocations: 107.2 kB / 332.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.01075, allocations: 197.2 kB / 332.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01075, allocations: 0 / 332.8 MB, free: 7.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003125/0.01106, allocations: 291.3 kB / 333.1 MB, free: 6.922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.01108, allocations: 4 kB / 333.1 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.01108, allocations: 7.938 kB / 333.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.0113, allocations: 40.83 kB / 333.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.01144, allocations: 55.91 kB / 333.2 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009874/0.01243, allocations: 1.629 MB / 334.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.02e-05/0.0125, allocations: 12 kB / 334.8 MB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.01251, allocations: 4 kB / 334.8 MB, free: 5.055 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 9.932e-05/0.01261, allocations: 145.8 kB / 335 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.01264, allocations: 23.86 kB / 335 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.01267, allocations: 34.66 kB / 335 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.01267, allocations: 4 kB / 335 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.01268, allocations: 0 / 335 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.01268, allocations: 3.984 kB / 335 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006812/0.01336, allocations: 0.7106 MB / 335.8 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.01337, allocations: 7.938 kB / 335.8 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/0.01351, allocations: 60 kB / 335.8 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.357e-05/0.01358, allocations: 36.83 kB / 335.9 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.0136, allocations: 11.94 kB / 335.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008919/0.01449, allocations: 1.37 MB / 337.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.01449, allocations: 3.984 kB / 337.2 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005044/0.015, allocations: 491.1 kB / 337.7 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.01503, allocations: 27.83 kB / 337.7 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.01504, allocations: 8 kB / 337.8 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.313e-05/0.01512, allocations: 8 kB / 337.8 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.01516, allocations: 23.95 kB / 337.8 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.01517, allocations: 8 kB / 337.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.544e-05/0.01525, allocations: 136.4 kB / 337.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01525, allocations: 0 / 337.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002471/0.0155, allocations: 68 kB / 338 MB, free: 1.672 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.0006736/0.01617, allocations: 1.017 MB / 339 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004466/0.01662, allocations: 326.8 kB / 339.3 MB, free: 288 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01662, allocations: 0 / 339.3 MB, free: 288 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.01682, allocations: 234.8 kB / 339.6 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.01715, allocations: 50.28 kB / 339.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.01953, allocations: 2.666 MB / 342.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.01964, allocations: 142.8 kB / 342.4 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.342e-05/0.01971, allocations: 26.28 kB / 342.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-05/0.0198, allocations: 72.48 kB / 342.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of SimCode: time 7.02e-07/0.0198, allocations: 4 kB / 342.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.04348, allocations: 6.128 MB / 348.6 MB, free: 6.953 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.146, allocations: 14.95 kB / 348.7 MB, free: 6.941 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.772924169898033]