Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004544/0.004544, allocations: 113.9 kB / 21.97 MB, free: 5.23 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.00134/0.00134, allocations: 211.5 kB / 25.27 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 56.3 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2458, allocations: 49.17 MB / 397.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006039/0.2518, allocations: 5.46 MB / 402.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0039/0.2557, allocations: 2.143 MB / 404.7 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007635/0.2565, allocations: 48.41 kB / 404.8 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004854/0.257, allocations: 212.4 kB / 405 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004029/0.2574, allocations: 168.6 kB / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008975/0.2583, allocations: 416.3 kB / 405.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009173/0.2592, allocations: 0.9998 MB / 406.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005789/0.2598, allocations: 421.5 kB / 407 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.2601, allocations: 356.3 kB / 407.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.2605, allocations: 361.9 kB / 407.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.2606, allocations: 92.47 kB / 407.8 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002813/0.2609, allocations: 152.7 kB / 407.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.2611, allocations: 202.4 kB / 408.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003429/0.2614, allocations: 432.1 kB / 408.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001431/0.2629, allocations: 1.174 MB / 409.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.2629, allocations: 10.11 kB / 409.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2629, allocations: 0 / 409.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.2629, allocations: 7.938 kB / 409.7 MB, free: 1.117 MB / 318.1 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.001505/0.2644, allocations: 0.9761 MB / 410.7 MB, free: 448 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.2644, allocations: 13.83 kB / 410.7 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.577e-05/0.2645, allocations: 22.31 kB / 410.7 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001293/0.2646, allocations: 132.3 kB / 410.9 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.2647, allocations: 91.5 kB / 411 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000864/0.2656, allocations: 460.8 kB / 411.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.909e-05/0.2657, allocations: 67.38 kB / 411.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.2658, allocations: 92.64 kB / 411.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.2673, allocations: 0.8064 MB / 412.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.329e-05/0.2673, allocations: 2.812 kB / 412.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.2674, allocations: 35.78 kB / 412.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.2674, allocations: 21.69 kB / 412.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009916/0.2684, allocations: 0.493 MB / 412.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/0.272, allocations: 2.779 MB / 415.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.2726, allocations: 207.3 kB / 415.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.2728, allocations: 94.09 kB / 416 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.2729, allocations: 16.11 kB / 416 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.2729, allocations: 36.84 kB / 416 MB, free: 12.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.2729, allocations: 4 kB / 416 MB, free: 12.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.00237/0.2753, allocations: 1.122 MB / 417.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.2753, allocations: 55 kB / 417.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.2757, allocations: 317.8 kB / 417.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.2757, allocations: 29.7 kB / 417.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000289/0.276, allocations: 405.9 kB / 418 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.2761, allocations: 143.4 kB / 418.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.2762, allocations: 87.17 kB / 418.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.2764, allocations: 348 kB / 418.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.2766, allocations: 108.6 kB / 418.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003193/0.277, allocations: 248.8 kB / 418.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005529/0.2775, allocations: 391 kB / 419.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2775, allocations: 5.156 kB / 419.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007482/0.2783, allocations: 463.1 kB / 419.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2783, allocations: 7.219 kB / 419.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2783, allocations: 4.688 kB / 419.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.2785, allocations: 38.59 kB / 419.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.2788, allocations: 113.6 kB / 419.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004472/0.2792, allocations: 0.5612 MB / 420.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.2794, allocations: 15.14 kB / 420.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.2795, allocations: 22.56 kB / 420.5 MB, free: 9.227 MB / 334.1 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.0003277/0.2798, allocations: 217.8 kB / 420.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.509e-05/0.2799, allocations: 44.92 kB / 420.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006285/0.2805, allocations: 318.2 kB / 421 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2805, allocations: 3.469 kB / 421 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2805, allocations: 0 / 421 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2805, allocations: 1.281 kB / 421 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.282, allocations: 0.9846 MB / 422 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.282, allocations: 1.281 kB / 422 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.2824, allocations: 74.94 kB / 422.1 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.2825, allocations: 33.62 kB / 422.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.2825, allocations: 16.33 kB / 422.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004019/0.2829, allocations: 0.5536 MB / 422.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2829, allocations: 1.219 kB / 422.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/0.2837, allocations: 0.5466 MB / 423.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.2838, allocations: 35.47 kB / 423.3 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.2838, allocations: 10.75 kB / 423.3 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.284, allocations: 7.656 kB / 423.3 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.284, allocations: 29.36 kB / 423.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.284, allocations: 13.5 kB / 423.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002096/0.2842, allocations: 208.9 kB / 423.6 MB, free: 6.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2842, allocations: 1.375 kB / 423.6 MB, free: 6.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.2848, allocations: 119.1 kB / 423.7 MB, free: 6.895 MB / 334.1 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.001136/0.2859, allocations: 1.09 MB / 424.8 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005993/0.2865, allocations: 302.9 kB / 425.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2865, allocations: 0 / 425.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.2868, allocations: 139.5 kB / 425.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.2873, allocations: 75.56 kB / 425.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/0.2934, allocations: 4.406 MB / 429.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006398/0.294, allocations: 0.9171 MB / 430.6 MB, free: 1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.2942, allocations: 51.33 kB / 430.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000306/0.2945, allocations: 247.3 kB / 430.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2945, allocations: 0 / 430.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.3302, allocations: 8.726 MB / 439.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.51, allocations: 3.938 kB / 439.6 MB, free: 7.914 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.795978501031641]