Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002348/0.002348, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002295/0.002295, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2635, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006799/0.2703, allocations: 5.447 MB / 414.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004214/0.2746, allocations: 2.138 MB / 416.3 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000741/0.2754, allocations: 39.75 kB / 416.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.2759, allocations: 202.3 kB / 416.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004203/0.2763, allocations: 182.4 kB / 416.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009002/0.2772, allocations: 395 kB / 417.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009708/0.2782, allocations: 1.025 MB / 418.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008313/0.2791, allocations: 0.6103 MB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004999/0.2796, allocations: 346.8 kB / 419.1 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004149/0.28, allocations: 362.3 kB / 419.5 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2801, allocations: 95.94 kB / 419.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.2804, allocations: 167.9 kB / 419.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.2806, allocations: 199.4 kB / 419.9 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003593/0.2809, allocations: 438 kB / 420.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.2823, allocations: 1.186 MB / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2823, allocations: 0 / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.2823, allocations: 0 / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.2823, allocations: 0 / 421.5 MB, free: 4.707 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.284, allocations: 1.06 MB / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.284, allocations: 8.031 kB / 422.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.2842, allocations: 131.5 kB / 422.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.2844, allocations: 100.4 kB / 422.8 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008333/0.2853, allocations: 0.5223 MB / 423.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.101e-05/0.2854, allocations: 70.31 kB / 423.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.2855, allocations: 92.27 kB / 423.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.2868, allocations: 0.8046 MB / 424.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.2868, allocations: 4 kB / 424.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.2869, allocations: 36 kB / 424.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.2869, allocations: 20 kB / 424.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009163/0.2879, allocations: 0.4918 MB / 424.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.291, allocations: 2.873 MB / 427.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.2915, allocations: 222.6 kB / 427.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.2917, allocations: 108.8 kB / 428.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002096/0.2919, allocations: 247.3 kB / 428.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.292, allocations: 35.06 kB / 428.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.953e-06/0.292, allocations: 0 / 428.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002323/0.2943, allocations: 1.278 MB / 429.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.2944, allocations: 59.39 kB / 429.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.2947, allocations: 309.7 kB / 430 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.2948, allocations: 29.7 kB / 430 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.295, allocations: 415.7 kB / 430.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.2951, allocations: 142.8 kB / 430.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.2953, allocations: 86.22 kB / 430.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2954, allocations: 354.7 kB / 431 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.2956, allocations: 109 kB / 431.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.2959, allocations: 250.7 kB / 431.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.2965, allocations: 388.7 kB / 431.7 MB, free: 9.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2965, allocations: 8 kB / 431.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007073/0.2972, allocations: 461.8 kB / 432.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.2972, allocations: 8 kB / 432.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.2972, allocations: 4 kB / 432.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.2974, allocations: 40.84 kB / 432.2 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.2978, allocations: 111.8 kB / 432.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004772/0.2983, allocations: 0.5523 MB / 432.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.2985, allocations: 16 kB / 432.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-05/0.2986, allocations: 28.09 kB / 432.9 MB, free: 8.66 MB / 350.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.0003211/0.2989, allocations: 217.6 kB / 433.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.91e-05/0.299, allocations: 39.7 kB / 433.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006046/0.2996, allocations: 317.8 kB / 433.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2996, allocations: 7.938 kB / 433.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.2996, allocations: 4 kB / 433.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.2997, allocations: 3.984 kB / 433.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001347/0.301, allocations: 1.016 MB / 434.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.301, allocations: 8.156 kB / 434.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.3014, allocations: 79.91 kB / 434.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001221/0.3015, allocations: 32.83 kB / 434.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.3015, allocations: 8 kB / 434.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004071/0.3019, allocations: 0.5562 MB / 435.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.302, allocations: 0 / 435.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007775/0.3027, allocations: 0.545 MB / 435.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.3029, allocations: 112.9 kB / 435.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.922e-05/0.3029, allocations: 12 kB / 435.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3031, allocations: 4 kB / 435.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.051e-05/0.3032, allocations: 23.97 kB / 435.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.3032, allocations: 15.94 kB / 435.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.3034, allocations: 215.2 kB / 436.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3034, allocations: 0 / 436.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005616/0.304, allocations: 124 kB / 436.2 MB, free: 5.164 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.001141/0.3052, allocations: 1.116 MB / 437.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006523/0.3058, allocations: 305 kB / 437.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3058, allocations: 0 / 437.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.3061, allocations: 147.9 kB / 437.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.3066, allocations: 68.14 kB / 437.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.3119, allocations: 4.418 MB / 442.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.3124, allocations: 0.9288 MB / 443.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001538/0.3125, allocations: 46.84 kB / 443.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.3128, allocations: 239.3 kB / 443.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3128, allocations: 0 / 443.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.3425, allocations: 8.325 MB / 451.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.79, allocations: 4.062 kB / 451.8 MB, free: 5.449 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches