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.0008579/0.0008581, allocations: 93.17 kB / 16.65 MB, free: 6.602 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.001045/0.001045, allocations: 174.4 kB / 17.56 MB, free: 6.203 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.377/1.377, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003685, allocations: 7.984 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1028, allocations: 50.42 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006042/0.1089, allocations: 4.961 MB / 356.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003974/0.1129, allocations: 2.005 MB / 358.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.114, allocations: 39.81 kB / 359 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006965/0.1147, allocations: 166.8 kB / 359.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007261/0.1155, allocations: 142.9 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.1166, allocations: 327.4 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1179, allocations: 0.9623 MB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009488/0.1189, allocations: 0.528 MB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004294/0.1193, allocations: 246.8 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004418/0.1198, allocations: 270.4 kB / 361.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/0.1199, allocations: 32 kB / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.1201, allocations: 91.91 kB / 361.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1203, allocations: 119.5 kB / 361.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003218/0.1206, allocations: 379.7 kB / 362.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008856/0.1215, allocations: 1.07 MB / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1215, allocations: 0 / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1215, allocations: 0 / 363.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1215, allocations: 0 / 363.2 MB, free: 8.215 MB / 302.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.001329/0.1229, allocations: 0.8853 MB / 364.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.1229, allocations: 8.031 kB / 364.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.1231, allocations: 131.5 kB / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1232, allocations: 87.91 kB / 364.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.1238, allocations: 0.5025 MB / 364.9 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.616e-05/0.1239, allocations: 62.38 kB / 364.9 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.124, allocations: 84.38 kB / 365 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.1254, allocations: 0.8123 MB / 365.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.234e-05/0.1255, allocations: 7.906 kB / 365.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.936e-05/0.1255, allocations: 32 kB / 365.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.1255, allocations: 27.94 kB / 365.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009223/0.1265, allocations: 0.4996 MB / 366.4 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.1298, allocations: 2.895 MB / 369.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005358/0.1304, allocations: 238.7 kB / 369.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001745/0.1306, allocations: 108.8 kB / 369.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002387/0.1308, allocations: 251.3 kB / 369.9 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1308, allocations: 34.56 kB / 369.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.1308, allocations: 0 / 369.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1693/0.3001, allocations: 1.267 MB / 371.2 MB, free: 24.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.621e-05/0.3002, allocations: 56.38 kB / 371.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004505/0.3007, allocations: 301.9 kB / 371.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.3007, allocations: 32.55 kB / 371.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.301, allocations: 400.1 kB / 371.9 MB, free: 24.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.528e-05/0.3011, allocations: 134.9 kB / 372.1 MB, free: 24.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.985e-05/0.3012, allocations: 44.45 kB / 372.1 MB, free: 24.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.3013, allocations: 349.7 kB / 372.4 MB, free: 23.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.3015, allocations: 109.6 kB / 372.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.3017, allocations: 256.5 kB / 372.8 MB, free: 23.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004464/0.3022, allocations: 392.1 kB / 373.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3022, allocations: 5.312 kB / 373.2 MB, free: 23.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008048/0.303, allocations: 460.4 kB / 373.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.303, allocations: 7.969 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3031, allocations: 5.312 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.3033, allocations: 37.86 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003537/0.3036, allocations: 112.5 kB / 373.8 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002742/0.3039, allocations: 0.5526 MB / 374.4 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.3041, allocations: 17.8 kB / 374.4 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.3042, allocations: 21.34 kB / 374.4 MB, free: 22.97 MB / 302.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.0003941/0.3046, allocations: 224.5 kB / 374.6 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.356e-05/0.3046, allocations: 37.06 kB / 374.6 MB, free: 22.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006244/0.3052, allocations: 324.8 kB / 375 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.3053, allocations: 3.906 kB / 375 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3053, allocations: 4.969 kB / 375 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3053, allocations: 5.953 kB / 375 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.3067, allocations: 1.021 MB / 376 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3067, allocations: 3.562 kB / 376 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003299/0.3071, allocations: 85.36 kB / 376.1 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/0.3072, allocations: 29.92 kB / 376.1 MB, free: 22.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.3072, allocations: 14.91 kB / 376.1 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001952/0.3074, allocations: 0.5489 MB / 376.7 MB, free: 21.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3074, allocations: 5.312 kB / 376.7 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006408/0.3081, allocations: 0.5497 MB / 377.2 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.3081, allocations: 113.1 kB / 377.3 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.3082, allocations: 11.58 kB / 377.4 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.3084, allocations: 17.95 kB / 377.4 MB, free: 21.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.3085, allocations: 23.25 kB / 377.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.3085, allocations: 10.89 kB / 377.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.3087, allocations: 212.6 kB / 377.6 MB, free: 21.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3087, allocations: 0 / 377.6 MB, free: 21.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004708/0.3092, allocations: 118.5 kB / 377.7 MB, free: 21.05 MB / 302.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.0008567/0.3101, allocations: 1.108 MB / 378.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006401/0.3107, allocations: 314.3 kB / 379.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3107, allocations: 0 / 379.1 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.311, allocations: 146.6 kB / 379.3 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.3115, allocations: 61.14 kB / 379.3 MB, free: 20 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005258/0.3168, allocations: 4.926 MB / 384.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.3172, allocations: 0.9203 MB / 385.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.3174, allocations: 51.67 kB / 385.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.3177, allocations: 240.5 kB / 385.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3177, allocations: 0 / 385.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.3391, allocations: 7.657 MB / 393.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/0.3393, allocations: 252 kB / 393.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.399, allocations: 0 / 393.4 MB, free: 13.07 MB / 302.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