Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0008619/0.0008619, allocations: 83.69 kB / 20.68 MB, free: 3.883 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.0008023/0.0008023, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8255/0.8255, allocations: 177.1 MB / 204.2 MB, free: 5.734 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.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 4 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.11e-05/1.302e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00399/0.004003, allocations: 4.849 MB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.006488, allocations: 2.06 MB / 331.5 MB, free: 9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003973/0.006885, allocations: 51.56 kB / 331.5 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003181/0.007203, allocations: 210.1 kB / 331.7 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.007458, allocations: 182.3 kB / 331.9 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006498/0.008108, allocations: 410.8 kB / 332.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000603/0.008711, allocations: 1.055 MB / 333.4 MB, free: 7.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.009106, allocations: 389.6 kB / 333.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003958/0.009502, allocations: 0.5225 MB / 334.3 MB, free: 6.176 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.009725, allocations: 255.2 kB / 334.5 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.009793, allocations: 96 kB / 334.6 MB, free: 5.832 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004105/0.0102, allocations: 155.8 kB / 334.8 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.01032, allocations: 203.3 kB / 335 MB, free: 5.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.01048, allocations: 291.3 kB / 335.2 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007303/0.01121, allocations: 1.207 MB / 336.4 MB, free: 3.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.01122, allocations: 0 / 336.4 MB, free: 3.984 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01122, allocations: 4 kB / 336.4 MB, free: 3.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.01122, allocations: 0 / 336.4 MB, free: 3.98 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.0008506/0.01208, allocations: 0.9726 MB / 337.4 MB, free: 2.973 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.01211, allocations: 8.031 kB / 337.4 MB, free: 2.965 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.154e-05/0.0122, allocations: 131.5 kB / 337.6 MB, free: 2.828 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.01234, allocations: 108.3 kB / 337.7 MB, free: 2.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.01281, allocations: 459.5 kB / 338.1 MB, free: 2.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.01285, allocations: 66.38 kB / 338.2 MB, free: 2.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.01292, allocations: 88.33 kB / 338.3 MB, free: 2.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008045/0.01372, allocations: 0.8089 MB / 339.1 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.01374, allocations: 192 / 339.1 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.931e-05/0.01378, allocations: 40.12 kB / 339.1 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.01379, allocations: 20 kB / 339.1 MB, free: 1.184 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005728/0.01437, allocations: 499.6 kB / 339.6 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.01641, allocations: 2.586 MB / 342.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.01675, allocations: 211.1 kB / 342.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.01685, allocations: 96.75 kB / 342.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.267e-05/0.01693, allocations: 15.98 kB / 342.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.01695, allocations: 42.5 kB / 342.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.182e-06/0.01695, allocations: 0 / 342.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.001319/0.01827, allocations: 1.125 MB / 343.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.0183, allocations: 55.41 kB / 343.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.01849, allocations: 317.6 kB / 344.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.01851, allocations: 29.7 kB / 344.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.01865, allocations: 403.8 kB / 344.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.904e-05/0.01871, allocations: 146.7 kB / 344.6 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.177e-05/0.01878, allocations: 90.14 kB / 344.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.168e-05/0.01886, allocations: 350.7 kB / 345.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.01898, allocations: 108.9 kB / 345.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.01915, allocations: 257.9 kB / 345.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.01947, allocations: 388.8 kB / 345.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.01947, allocations: 4 kB / 345.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000413/0.01988, allocations: 453.4 kB / 346.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.0199, allocations: 8 kB / 346.2 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.0199, allocations: 4.594 kB / 346.2 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000128/0.02003, allocations: 40.84 kB / 346.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.02021, allocations: 107.8 kB / 346.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002576/0.02047, allocations: 0.564 MB / 347 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.033e-05/0.02056, allocations: 20 kB / 347 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.02059, allocations: 20 kB / 347 MB, free: 8.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.02075, allocations: 213.7 kB / 347.2 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.403e-05/0.02079, allocations: 39.77 kB / 347.2 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.02115, allocations: 334.4 kB / 347.6 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.02115, allocations: 4 kB / 347.6 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.02115, allocations: 0 / 347.6 MB, free: 8.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.02116, allocations: 3.984 kB / 347.6 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008017/0.02196, allocations: 0.9412 MB / 348.5 MB, free: 7.301 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.02196, allocations: 0 / 348.5 MB, free: 7.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.02215, allocations: 84.05 kB / 348.6 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-05/0.02222, allocations: 32.84 kB / 348.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.02223, allocations: 8 kB / 348.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005134/0.02275, allocations: 0.5678 MB / 349.2 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.02275, allocations: 0 / 349.2 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.02318, allocations: 0.5407 MB / 349.7 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.999e-05/0.02321, allocations: 39.7 kB / 349.8 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.02324, allocations: 12.06 kB / 349.8 MB, free: 5.953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.333e-05/0.02331, allocations: 11.98 kB / 349.8 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.02335, allocations: 23.97 kB / 349.8 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.02336, allocations: 11.98 kB / 349.8 MB, free: 5.906 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.02348, allocations: 219.2 kB / 350.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02348, allocations: 0 / 350.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000273/0.02376, allocations: 119.9 kB / 350.2 MB, free: 5.578 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006492/0.0244, allocations: 1.104 MB / 351.3 MB, free: 4.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003469/0.02475, allocations: 307.8 kB / 351.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.02475, allocations: 1.188 kB / 351.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.02489, allocations: 132.1 kB / 351.7 MB, free: 4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.02519, allocations: 75.94 kB / 351.8 MB, free: 3.934 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.02863, allocations: 4.189 MB / 356 MB, free: 15.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.02883, allocations: 333.6 kB / 356.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.02893, allocations: 43.34 kB / 356.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.02911, allocations: 240.4 kB / 356.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02911, allocations: 8 kB / 356.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.04829, allocations: 9.046 MB / 365.6 MB, free: 6.012 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.496, allocations: 7.609 kB / 365.6 MB, free: 6.008 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 9.047214725986123]