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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 110.4 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 183.1 kB / 18.66 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0851/0.08686, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1694/0.2563, allocations: 5.409 MB / 380.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003294/0.2596, allocations: 2.117 MB / 382.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006296/0.2603, allocations: 36.09 kB / 382.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004406/0.2608, allocations: 204.2 kB / 382.4 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.2612, allocations: 166.2 kB / 382.6 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008677/0.262, allocations: 395 kB / 383 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.2632, allocations: 1.01 MB / 384 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007793/0.264, allocations: 0.6116 MB / 384.6 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.2644, allocations: 335.1 kB / 384.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003682/0.2648, allocations: 364.1 kB / 385.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.2649, allocations: 96.06 kB / 385.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002654/0.2652, allocations: 149.1 kB / 385.5 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.2653, allocations: 200.3 kB / 385.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.2657, allocations: 436 kB / 386.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.2668, allocations: 1.182 MB / 387.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.2668, allocations: 1.156 kB / 387.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2669, allocations: 0 / 387.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.2669, allocations: 0 / 387.3 MB, free: 6.805 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.00141/0.2683, allocations: 1.05 MB / 388.3 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2683, allocations: 10.66 kB / 388.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.2685, allocations: 134.7 kB / 388.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.2686, allocations: 92.2 kB / 388.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007358/0.2694, allocations: 0.5198 MB / 389.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.2694, allocations: 64.06 kB / 389.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.2695, allocations: 88.84 kB / 389.3 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.2708, allocations: 0.8091 MB / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.2709, allocations: 4.609 kB / 390.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.2709, allocations: 36.06 kB / 390.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.271, allocations: 20.25 kB / 390.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009059/0.2719, allocations: 0.4966 MB / 390.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.2746, allocations: 2.862 MB / 393.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005045/0.2751, allocations: 225.2 kB / 393.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.2753, allocations: 106.9 kB / 393.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.2755, allocations: 250.2 kB / 394 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.709e-05/0.2755, allocations: 32.03 kB / 394.1 MB, free: 2.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.304e-06/0.2755, allocations: 0 / 394.1 MB, free: 2.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002118/0.2776, allocations: 1.278 MB / 395.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.2777, allocations: 54.92 kB / 395.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.278, allocations: 307.1 kB / 395.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.278, allocations: 30.83 kB / 395.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.2782, allocations: 407.2 kB / 396.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.2782, allocations: 138.6 kB / 396.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.2784, allocations: 95.62 kB / 396.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.726e-05/0.2784, allocations: 351 kB / 396.7 MB, free: 464 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.2786, allocations: 107.1 kB / 396.8 MB, free: 428 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.2789, allocations: 253.2 kB / 397.1 MB, free: 208 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.2794, allocations: 388.9 kB / 397.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2794, allocations: 1.188 kB / 397.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007652/0.2802, allocations: 463.4 kB / 397.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.2802, allocations: 11.06 kB / 397.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2802, allocations: 3.531 kB / 397.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.2804, allocations: 35.33 kB / 397.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.2808, allocations: 111.8 kB / 398.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004326/0.2812, allocations: 0.558 MB / 398.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.2814, allocations: 20.14 kB / 398.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.2815, allocations: 22.5 kB / 398.7 MB, free: 15.11 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.0003112/0.2818, allocations: 221.5 kB / 398.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.846e-05/0.2818, allocations: 41.09 kB / 398.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/0.2825, allocations: 327.8 kB / 399.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2825, allocations: 6.562 kB / 399.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2825, allocations: 1.438 kB / 399.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.2825, allocations: 2.016 kB / 399.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.284, allocations: 1.015 MB / 400.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.284, allocations: 5.75 kB / 400.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.2844, allocations: 81.84 kB / 400.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.2845, allocations: 30.73 kB / 400.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2846, allocations: 17.91 kB / 400.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003569/0.2849, allocations: 0.547 MB / 400.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.285, allocations: 1.844 kB / 400.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.2857, allocations: 0.5546 MB / 401.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.69e-05/0.2858, allocations: 111.6 kB / 401.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.2859, allocations: 10.3 kB / 401.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.286, allocations: 8.359 kB / 401.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.2861, allocations: 21.7 kB / 401.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.2861, allocations: 18.7 kB / 401.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.2863, allocations: 208.8 kB / 401.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2863, allocations: 0 / 401.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004889/0.2868, allocations: 117.2 kB / 402 MB, free: 12.92 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.00109/0.2879, allocations: 1.105 MB / 403.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006195/0.2886, allocations: 316.1 kB / 403.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2886, allocations: 192 / 403.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.2889, allocations: 141.3 kB / 403.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005115/0.2894, allocations: 70.55 kB / 403.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.2954, allocations: 4.405 MB / 408 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.296, allocations: 0.9233 MB / 408.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.2962, allocations: 47.75 kB / 409 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/0.2965, allocations: 243.7 kB / 409.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2965, allocations: 1.219 kB / 409.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03564/0.3321, allocations: 8.307 MB / 417.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.95, allocations: 6.281 kB / 417.5 MB, free: 3.301 MB / 334.1 MB (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 --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) 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) Reference file matches