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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001237/0.001237, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.445/1.445, 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.001395/0.001395, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.0975, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.2077/0.3053, allocations: 5.408 MB / 380.5 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.3091, allocations: 2.115 MB / 382.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004947/0.3096, allocations: 36.56 kB / 382.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004845/0.3102, allocations: 208.9 kB / 382.9 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.3105, allocations: 166.9 kB / 383.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009/0.3114, allocations: 389.8 kB / 383.4 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001156/0.3126, allocations: 1.014 MB / 384.5 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008004/0.3134, allocations: 0.6096 MB / 385.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003709/0.3138, allocations: 337.6 kB / 385.4 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.3142, allocations: 367.2 kB / 385.8 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.3144, allocations: 92.22 kB / 385.8 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000287/0.3147, allocations: 152.3 kB / 386 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.3149, allocations: 204.4 kB / 386.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.3153, allocations: 432.9 kB / 386.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.317, allocations: 1.177 MB / 387.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.317, allocations: 0 / 387.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.317, allocations: 0 / 387.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.63e-05/0.317, allocations: 5.062 kB / 387.8 MB, free: 7.172 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.001569/0.3186, allocations: 1.027 MB / 388.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3186, allocations: 9.906 kB / 388.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3188, allocations: 87.8 kB / 388.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008064/0.3196, allocations: 0.5149 MB / 389.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.3197, allocations: 64.41 kB / 389.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.3198, allocations: 89.14 kB / 389.6 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.3212, allocations: 0.8054 MB / 390.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.3212, allocations: 7.844 kB / 390.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.223e-05/0.3213, allocations: 36.75 kB / 390.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.3213, allocations: 28.25 kB / 390.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009287/0.3222, allocations: 0.4922 MB / 391 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002968/0.3252, allocations: 2.853 MB / 393.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.3258, allocations: 219 kB / 394 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.326, allocations: 102.9 kB / 394.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001454/0.3261, allocations: 249.8 kB / 394.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.3261, allocations: 33.61 kB / 394.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.3261, allocations: 0 / 394.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002235/0.3284, allocations: 1.267 MB / 395.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.3284, allocations: 55.62 kB / 395.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.3288, allocations: 301.4 kB / 396 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3288, allocations: 32.39 kB / 396 MB, free: 1.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.329, allocations: 407 kB / 396.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.869e-05/0.3291, allocations: 128.6 kB / 396.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3292, allocations: 88.31 kB / 396.7 MB, free: 1.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.786e-05/0.3293, allocations: 355.3 kB / 397 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.3295, allocations: 106.5 kB / 397.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.3298, allocations: 261.3 kB / 397.4 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004701/0.3303, allocations: 389 kB / 397.7 MB, free: 440 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3303, allocations: 1 kB / 397.7 MB, free: 440 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006753/0.331, allocations: 462.5 kB / 398.2 MB, free: 224 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.331, allocations: 7.016 kB / 398.2 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.331, allocations: 4.688 kB / 398.2 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.3312, allocations: 35.86 kB / 398.2 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.3315, allocations: 110.8 kB / 398.3 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003653/0.3319, allocations: 0.5611 MB / 398.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.3321, allocations: 16.45 kB / 398.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/0.3321, allocations: 26.59 kB / 399 MB, free: 15.63 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.0002817/0.3324, allocations: 221.5 kB / 399.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-05/0.3325, allocations: 33.58 kB / 399.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006179/0.3331, allocations: 327.4 kB / 399.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3331, allocations: 4.203 kB / 399.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3332, allocations: 0 / 399.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3332, allocations: 1.641 kB / 399.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.3346, allocations: 1.02 MB / 400.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3346, allocations: 2.422 kB / 400.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.335, allocations: 77.98 kB / 400.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.3351, allocations: 37.44 kB / 400.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.3351, allocations: 10.03 kB / 400.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003331/0.3355, allocations: 0.552 MB / 401.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3355, allocations: 1.781 kB / 401.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007317/0.3362, allocations: 0.5542 MB / 401.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.473e-05/0.3363, allocations: 102.9 kB / 401.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.3364, allocations: 8.828 kB / 401.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.3365, allocations: 13.3 kB / 401.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.3366, allocations: 23.14 kB / 401.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.3366, allocations: 14.94 kB / 401.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002154/0.3369, allocations: 212.2 kB / 402.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3369, allocations: 4 kB / 402.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005076/0.3374, allocations: 121.6 kB / 402.3 MB, free: 13.45 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.000178/0.3376, allocations: 119.2 kB / 402.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.3382, allocations: 303.9 kB / 402.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3382, allocations: 0 / 402.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002746/0.3385, allocations: 142.2 kB / 402.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.339, allocations: 67.7 kB / 402.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.3417, allocations: 1.576 MB / 404.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006758/0.3424, allocations: 0.9201 MB / 405.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.3425, allocations: 43.89 kB / 405.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.847e-05/0.3426, allocations: 30.92 kB / 405.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3426, allocations: 0 / 405.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of Templates: time 0.009292/0.3519, allocations: 3.86 MB / 409.3 MB, free: 9.766 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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