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.001484/0.001484, allocations: 107.8 kB / 17.06 MB, free: 6.02 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.001652/0.001652, allocations: 191 kB / 18 MB, free: 5.102 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2913, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006866/0.2982, allocations: 5.433 MB / 405.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004279/0.3026, allocations: 2.071 MB / 407.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.3036, allocations: 35.81 kB / 407.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.3043, allocations: 206.2 kB / 408 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006163/0.3049, allocations: 174.4 kB / 408.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.3061, allocations: 391.1 kB / 408.5 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3074, allocations: 1.029 MB / 409.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000847/0.3082, allocations: 0.6065 MB / 410.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004541/0.3087, allocations: 342.8 kB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.3091, allocations: 366.2 kB / 410.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.3092, allocations: 92 kB / 410.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.3095, allocations: 148 kB / 411.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.3097, allocations: 207.4 kB / 411.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004374/0.3101, allocations: 437.9 kB / 411.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.3113, allocations: 1.182 MB / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3114, allocations: 0 / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3114, allocations: 0 / 412.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.3114, allocations: 0 / 412.9 MB, free: 12.06 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.001496/0.3129, allocations: 1.048 MB / 413.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.313, allocations: 12.03 kB / 414 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001522/0.3131, allocations: 131.5 kB / 414.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.3133, allocations: 92.38 kB / 414.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008201/0.3141, allocations: 0.5222 MB / 414.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.3142, allocations: 70.31 kB / 414.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.3143, allocations: 88.33 kB / 414.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.3156, allocations: 0.8084 MB / 415.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.3157, allocations: 7.953 kB / 415.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.091e-05/0.3157, allocations: 36 kB / 415.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.3158, allocations: 20 kB / 415.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009355/0.3167, allocations: 0.4918 MB / 416.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003302/0.32, allocations: 2.869 MB / 419.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005821/0.3206, allocations: 226.9 kB / 419.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.3208, allocations: 109.2 kB / 419.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/0.3211, allocations: 251.3 kB / 419.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.3211, allocations: 38.56 kB / 419.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.3211, allocations: 0 / 419.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002665/0.3238, allocations: 1.262 MB / 421 MB, free: 3.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.3239, allocations: 55.41 kB / 421 MB, free: 3.508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.3242, allocations: 308.4 kB / 421.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.3243, allocations: 33.7 kB / 421.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/0.3246, allocations: 407.7 kB / 421.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3247, allocations: 138.8 kB / 421.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.3248, allocations: 90.2 kB / 422 MB, free: 2.523 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.325, allocations: 354.7 kB / 422.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.3252, allocations: 105.1 kB / 422.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.3255, allocations: 250.7 kB / 422.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005148/0.326, allocations: 388.9 kB / 423 MB, free: 1.316 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.326, allocations: 3.938 kB / 423 MB, free: 1.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007274/0.3268, allocations: 473 kB / 423.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3268, allocations: 8.594 kB / 423.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3268, allocations: 8 kB / 423.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000244/0.3271, allocations: 32.84 kB / 423.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003802/0.3275, allocations: 111.8 kB / 423.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004617/0.3279, allocations: 0.5523 MB / 424.2 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.3281, allocations: 23.92 kB / 424.2 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.3282, allocations: 20 kB / 424.3 MB, free: 60 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.0003529/0.3286, allocations: 229.7 kB / 424.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.956e-05/0.3286, allocations: 43.7 kB / 424.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006044/0.3292, allocations: 318.2 kB / 424.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3293, allocations: 4 kB / 424.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3293, allocations: 0 / 424.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3293, allocations: 0 / 424.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.3307, allocations: 1.019 MB / 425.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3307, allocations: 0 / 425.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004164/0.3311, allocations: 83.89 kB / 425.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001354/0.3313, allocations: 37 kB / 426 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.3313, allocations: 8 kB / 426 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003743/0.3317, allocations: 0.5445 MB / 426.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3317, allocations: 7.969 kB / 426.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007657/0.3325, allocations: 0.5453 MB / 427.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.463e-05/0.3326, allocations: 108.9 kB / 427.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.68e-05/0.3326, allocations: 12 kB / 427.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3328, allocations: 11.98 kB / 427.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.3328, allocations: 27.97 kB / 427.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.3329, allocations: 11.94 kB / 427.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.3331, allocations: 211.1 kB / 427.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3331, allocations: 0 / 427.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005426/0.3336, allocations: 119.9 kB / 427.6 MB, free: 12.56 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.001162/0.3348, allocations: 1.11 MB / 428.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000633/0.3355, allocations: 307.6 kB / 429 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3355, allocations: 1.188 kB / 429 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.3358, allocations: 136.1 kB / 429.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.3363, allocations: 77.73 kB / 429.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005858/0.3422, allocations: 4.39 MB / 433.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005596/0.3427, allocations: 0.9249 MB / 434.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.3429, allocations: 45.97 kB / 434.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.3432, allocations: 247.3 kB / 434.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3432, allocations: 0 / 434.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.375, allocations: 8.291 MB / 443.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12, allocations: 7.516 kB / 443.1 MB, free: 12.91 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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