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.001139/0.001139, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 62.23 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1009, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007484/0.1085, allocations: 5.43 MB / 363 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004163/0.1127, allocations: 2.141 MB / 365.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1137, allocations: 39.75 kB / 365.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007163/0.1145, allocations: 210.2 kB / 365.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006743/0.1152, allocations: 174.4 kB / 365.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.1163, allocations: 407 kB / 366 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.1176, allocations: 1.013 MB / 367 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008806/0.1185, allocations: 0.6104 MB / 367.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005265/0.1191, allocations: 342.8 kB / 367.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.1196, allocations: 366.3 kB / 368.3 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.1197, allocations: 92 kB / 368.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003737/0.1201, allocations: 155.9 kB / 368.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.1203, allocations: 199.4 kB / 368.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006545/0.121, allocations: 434 kB / 369.1 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.1222, allocations: 1.157 MB / 370.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1222, allocations: 4 kB / 370.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1222, allocations: 0 / 370.3 MB, free: 1.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.446e-05/0.1223, allocations: 4 kB / 370.3 MB, free: 1.199 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.001569/0.1238, allocations: 1.022 MB / 371.3 MB, free: 128 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1239, allocations: 12.03 kB / 371.3 MB, free: 116 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1796/0.3035, allocations: 128.4 kB / 371.5 MB, free: 20.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000426/0.304, allocations: 97.89 kB / 371.6 MB, free: 20.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009021/0.3049, allocations: 0.5047 MB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.13e-05/0.305, allocations: 64.53 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002019/0.3052, allocations: 83.09 kB / 372.2 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.307, allocations: 0.8043 MB / 373 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.307, allocations: 16.69 kB / 373 MB, free: 19.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/0.3071, allocations: 35.62 kB / 373.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.514e-05/0.3071, allocations: 23.53 kB / 373.1 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3082, allocations: 0.4922 MB / 373.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003235/0.3114, allocations: 2.893 MB / 376.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005164/0.312, allocations: 224.8 kB / 376.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.3121, allocations: 101.1 kB / 376.8 MB, free: 17.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002555/0.3124, allocations: 251.9 kB / 377 MB, free: 17.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3124, allocations: 43.25 kB / 377.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.624e-06/0.3124, allocations: 0.5469 kB / 377.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002325/0.3148, allocations: 1.256 MB / 378.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.3148, allocations: 55.72 kB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3151, allocations: 308.8 kB / 378.7 MB, free: 16.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.3152, allocations: 31.08 kB / 378.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.3154, allocations: 407.1 kB / 379.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.3155, allocations: 135.2 kB / 379.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.3156, allocations: 87.33 kB / 379.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.026e-05/0.3157, allocations: 351.8 kB / 379.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3159, allocations: 110.6 kB / 379.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.3162, allocations: 252.8 kB / 380 MB, free: 15.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004653/0.3166, allocations: 388.8 kB / 380.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3166, allocations: 1.531 kB / 380.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007315/0.3174, allocations: 458.2 kB / 380.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3174, allocations: 7.688 kB / 380.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.3174, allocations: 7.922 kB / 380.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.3176, allocations: 42.23 kB / 380.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.318, allocations: 113.9 kB / 381 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002782/0.3183, allocations: 0.5544 MB / 381.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.3185, allocations: 16.03 kB / 381.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.3185, allocations: 22.53 kB / 381.6 MB, free: 13.96 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.0002297/0.3187, allocations: 220.2 kB / 381.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.3188, allocations: 37.25 kB / 381.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005824/0.3194, allocations: 318.5 kB / 382.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3194, allocations: 3.438 kB / 382.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3194, allocations: 5.156 kB / 382.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3194, allocations: 5.922 kB / 382.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.321, allocations: 1.025 MB / 383.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.321, allocations: 5.25 kB / 383.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.3214, allocations: 80.77 kB / 383.3 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.3216, allocations: 30.61 kB / 383.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.3216, allocations: 9.734 kB / 383.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002311/0.3219, allocations: 0.5533 MB / 383.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.3219, allocations: 6.062 kB / 383.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006707/0.3226, allocations: 0.5418 MB / 384.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.3226, allocations: 112 kB / 384.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.676e-05/0.3227, allocations: 9.141 kB / 384.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.3228, allocations: 9.312 kB / 384.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.3229, allocations: 23.02 kB / 384.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.3229, allocations: 14.5 kB / 384.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.3231, allocations: 217.4 kB / 384.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3231, allocations: 0 / 384.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000543/0.3237, allocations: 125.7 kB / 384.9 MB, free: 11.8 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.0009125/0.3246, allocations: 1.099 MB / 386 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006487/0.3253, allocations: 322.1 kB / 386.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3253, allocations: 5.312 kB / 386.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3256, allocations: 145.4 kB / 386.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.3261, allocations: 64.81 kB / 386.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005294/0.3314, allocations: 4.433 MB / 391 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.3319, allocations: 0.9218 MB / 391.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3321, allocations: 47.83 kB / 392 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.3324, allocations: 240.6 kB / 392.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3324, allocations: 0 / 392.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.3629, allocations: 8.098 MB / 400.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.06, allocations: 7.625 kB / 400.3 MB, free: 3.387 MB / 302.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