Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0008394/0.0008394, allocations: 80.34 kB / 20.67 MB, free: 3.895 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.001083/0.001083, allocations: 160.9 kB / 23.95 MB, free: 0.6172 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.8609/0.8609, allocations: 177 MB / 204.1 MB, free: 5.758 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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.674e-05/1.815e-05, allocations: 2.844 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004124/0.004143, allocations: 4.855 MB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.006992, allocations: 2.048 MB / 331.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006021/0.007594, allocations: 55.56 kB / 331.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003456/0.00794, allocations: 206.2 kB / 331.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003084/0.008248, allocations: 190.2 kB / 331.8 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.008935, allocations: 406.9 kB / 332.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007904/0.009725, allocations: 1.048 MB / 333.3 MB, free: 7.074 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004487/0.01017, allocations: 393.6 kB / 333.7 MB, free: 6.676 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005017/0.01068, allocations: 0.5225 MB / 334.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.0109, allocations: 263.2 kB / 334.5 MB, free: 5.895 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.045e-05/0.01097, allocations: 92 kB / 334.5 MB, free: 5.805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.01114, allocations: 155.8 kB / 334.7 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.01125, allocations: 199.3 kB / 334.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.01142, allocations: 295.3 kB / 335.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007398/0.01216, allocations: 1.203 MB / 336.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.01216, allocations: 0 / 336.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01216, allocations: 0 / 336.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.01217, allocations: 0 / 336.4 MB, free: 3.961 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.0009005/0.01308, allocations: 0.9765 MB / 337.4 MB, free: 2.949 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.01311, allocations: 15.98 kB / 337.4 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.736e-05/0.01321, allocations: 131.5 kB / 337.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.01336, allocations: 104.4 kB / 337.6 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007521/0.01411, allocations: 463.5 kB / 338.1 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.01415, allocations: 66.38 kB / 338.1 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.255e-05/0.01422, allocations: 88.33 kB / 338.2 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008084/0.01503, allocations: 0.8011 MB / 339 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.01505, allocations: 8.188 kB / 339 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.01509, allocations: 32.12 kB / 339.1 MB, free: 1.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.0151, allocations: 24 kB / 339.1 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000572/0.01567, allocations: 0.4918 MB / 339.6 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.01752, allocations: 2.579 MB / 342.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.01806, allocations: 211.2 kB / 342.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.0182, allocations: 104.7 kB / 342.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.01832, allocations: 19.98 kB / 342.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.01834, allocations: 34.5 kB / 342.5 MB, free: 13.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.475e-06/0.01834, allocations: 0 / 342.5 MB, free: 13.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.001709/0.02005, allocations: 1.123 MB / 343.6 MB, free: 12.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.02009, allocations: 55.41 kB / 343.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.02033, allocations: 317.6 kB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.02035, allocations: 29.7 kB / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.02051, allocations: 411.8 kB / 344.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.097e-05/0.02058, allocations: 142.8 kB / 344.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.494e-05/0.02067, allocations: 82.16 kB / 344.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.02076, allocations: 358.7 kB / 345 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.0209, allocations: 105 kB / 345.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.02108, allocations: 253.8 kB / 345.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.02141, allocations: 392.9 kB / 345.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.02141, allocations: 0 / 345.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000454/0.02187, allocations: 461.3 kB / 346.2 MB, free: 9.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.02189, allocations: 4 kB / 346.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.0219, allocations: 8 kB / 346.2 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.02206, allocations: 41.42 kB / 346.2 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.02227, allocations: 111.8 kB / 346.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002977/0.02257, allocations: 0.564 MB / 346.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.02268, allocations: 16 kB / 346.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.02271, allocations: 20 kB / 346.9 MB, free: 8.883 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.00023/0.02294, allocations: 213.7 kB / 347.1 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.02298, allocations: 39.77 kB / 347.2 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000385/0.02336, allocations: 330.4 kB / 347.5 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.02337, allocations: 4 kB / 347.5 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.02337, allocations: 0 / 347.5 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.02338, allocations: 3.984 kB / 347.5 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009074/0.02428, allocations: 0.9426 MB / 348.5 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.02429, allocations: 4 kB / 348.5 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.02448, allocations: 79.89 kB / 348.5 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.424e-05/0.02457, allocations: 37 kB / 348.6 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.02459, allocations: 15.94 kB / 348.6 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002136/0.02481, allocations: 0.5484 MB / 349.1 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.02481, allocations: 7.875 kB / 349.2 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.02527, allocations: 0.5407 MB / 349.7 MB, free: 5.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.02531, allocations: 35.7 kB / 349.7 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.02533, allocations: 12 kB / 349.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.676e-05/0.02541, allocations: 15.98 kB / 349.8 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.02545, allocations: 28.02 kB / 349.8 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.02547, allocations: 12 kB / 349.8 MB, free: 5.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001371/0.02561, allocations: 215.2 kB / 350 MB, free: 5.668 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02561, allocations: 0 / 350 MB, free: 5.668 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.02594, allocations: 119.9 kB / 350.1 MB, free: 5.551 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.0007124/0.02665, allocations: 1.101 MB / 351.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003996/0.02705, allocations: 299.9 kB / 351.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.02705, allocations: 0 / 351.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.0272, allocations: 145.2 kB / 351.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.02754, allocations: 78.86 kB / 351.7 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.03118, allocations: 4.179 MB / 355.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.0314, allocations: 329.6 kB / 356.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.03152, allocations: 51.27 kB / 356.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.03171, allocations: 236.4 kB / 356.5 MB, free: 14.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.03171, allocations: 4 kB / 356.5 MB, free: 14.85 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.05483, allocations: 9.06 MB / 365.6 MB, free: 5.949 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.708, allocations: 6.656 kB / 365.6 MB, free: 5.945 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.33422777429223]