Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_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.001074/0.001074, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001108/0.001108, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009673/0.0009673, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.254, allocations: 49.43 MB / 400.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006397/0.2605, allocations: 5.426 MB / 405.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003538/0.264, allocations: 2.075 MB / 407.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008202/0.2649, allocations: 35.81 kB / 407.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005813/0.2655, allocations: 210.2 kB / 408 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005531/0.2661, allocations: 166.4 kB / 408.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009656/0.2671, allocations: 387 kB / 408.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2682, allocations: 1.044 MB / 409.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008501/0.2691, allocations: 0.5948 MB / 410.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005097/0.2696, allocations: 338.8 kB / 410.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000479/0.2701, allocations: 370.2 kB / 410.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.2703, allocations: 92 kB / 410.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002985/0.2706, allocations: 152 kB / 411.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.2708, allocations: 203.3 kB / 411.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000418/0.2712, allocations: 434 kB / 411.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.2724, allocations: 1.177 MB / 412.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2724, allocations: 0 / 412.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2724, allocations: 0 / 412.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.2724, allocations: 0 / 412.9 MB, free: 12.22 MB / 334.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.00162/0.2741, allocations: 1.036 MB / 413.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.2741, allocations: 8.031 kB / 413.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.2743, allocations: 131.5 kB / 414.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.2744, allocations: 87.91 kB / 414.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007333/0.2751, allocations: 0.5258 MB / 414.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/0.2752, allocations: 62.38 kB / 414.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.2753, allocations: 84.38 kB / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.2767, allocations: 0.8085 MB / 415.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.837e-05/0.2767, allocations: 11.84 kB / 415.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.2768, allocations: 36 kB / 415.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.2768, allocations: 20 kB / 415.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.2779, allocations: 0.4996 MB / 416.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.2811, allocations: 2.86 MB / 419 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005337/0.2816, allocations: 228.9 kB / 419.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.2818, allocations: 93.33 kB / 419.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002027/0.282, allocations: 259.3 kB / 419.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.2821, allocations: 42.5 kB / 419.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.2821, allocations: 0 / 419.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002338/0.2844, allocations: 1.242 MB / 420.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.2845, allocations: 59.39 kB / 420.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.2848, allocations: 308.4 kB / 421.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.2848, allocations: 29.7 kB / 421.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.285, allocations: 390.6 kB / 421.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-05/0.2851, allocations: 138.1 kB / 421.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.2853, allocations: 90.17 kB / 421.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2854, allocations: 358.7 kB / 422.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.2856, allocations: 105.1 kB / 422.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.2859, allocations: 254.7 kB / 422.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.2864, allocations: 384.8 kB / 423 MB, free: 1.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2864, allocations: 4 kB / 423 MB, free: 1.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006995/0.2871, allocations: 461.4 kB / 423.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2872, allocations: 12.09 kB / 423.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.2872, allocations: 4 kB / 423.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.2873, allocations: 32.84 kB / 423.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.2877, allocations: 115.8 kB / 423.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003731/0.2881, allocations: 0.5523 MB / 424.1 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.2883, allocations: 16 kB / 424.1 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.2883, allocations: 24.06 kB / 424.2 MB, free: 296 kB / 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.0002491/0.2886, allocations: 225.6 kB / 424.4 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/0.2886, allocations: 43.47 kB / 424.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005997/0.2892, allocations: 322.3 kB / 424.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2893, allocations: 4 kB / 424.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.2893, allocations: 4 kB / 424.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.2893, allocations: 7.922 kB / 424.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.2906, allocations: 1.008 MB / 425.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2907, allocations: 7.984 kB / 425.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.291, allocations: 76.06 kB / 425.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.2911, allocations: 28.84 kB / 425.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.2912, allocations: 23.98 kB / 425.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000309/0.2915, allocations: 0.5523 MB / 426.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2915, allocations: 3.938 kB / 426.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000721/0.2922, allocations: 0.5369 MB / 427 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.2923, allocations: 108.6 kB / 427.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.2924, allocations: 8 kB / 427.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.2925, allocations: 16 kB / 427.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.2926, allocations: 19.97 kB / 427.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.2926, allocations: 15.94 kB / 427.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.2928, allocations: 211.1 kB / 427.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2928, allocations: 0 / 427.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004777/0.2933, allocations: 120 kB / 427.5 MB, free: 12.79 MB / 350.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.001042/0.2944, allocations: 1.112 MB / 428.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005733/0.2949, allocations: 293.7 kB / 428.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.295, allocations: 3.938 kB / 428.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.2952, allocations: 148.1 kB / 429 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.2957, allocations: 76.16 kB / 429.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005241/0.301, allocations: 4.365 MB / 433.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.3015, allocations: 0.921 MB / 434.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.3017, allocations: 47.28 kB / 434.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/0.302, allocations: 243.3 kB / 434.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.302, allocations: 0 / 434.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.3305, allocations: 8.385 MB / 443.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/12.98, allocations: 10.98 kB / 443.1 MB, free: 13.07 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches