Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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.001235/0.001235, allocations: 106.5 kB / 17.73 MB, free: 5.355 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.0012/0.0012, allocations: 191 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 47.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.0932, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1828/0.276, allocations: 5.418 MB / 380 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003328/0.2794, allocations: 2.115 MB / 382.2 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000697/0.2801, allocations: 35.19 kB / 382.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004942/0.2807, allocations: 205.7 kB / 382.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004365/0.2811, allocations: 168.1 kB / 382.6 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009756/0.2821, allocations: 395.7 kB / 383 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.2834, allocations: 1.007 MB / 384 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008623/0.2842, allocations: 0.6082 MB / 384.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.2848, allocations: 348.6 kB / 384.9 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004294/0.2852, allocations: 357.6 kB / 385.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.2853, allocations: 91.78 kB / 385.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003332/0.2857, allocations: 153.6 kB / 385.5 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.2859, allocations: 204.9 kB / 385.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003683/0.2863, allocations: 430.2 kB / 386.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.2877, allocations: 1.173 MB / 387.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2877, allocations: 1.984 kB / 387.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2877, allocations: 0 / 387.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.2878, allocations: 0 / 387.3 MB, free: 6.82 MB / 318.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.001463/0.2892, allocations: 1.036 MB / 388.3 MB, free: 6.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.2893, allocations: 10.09 kB / 388.3 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.2894, allocations: 135.1 kB / 388.5 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2896, allocations: 87.72 kB / 388.6 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.2903, allocations: 0.5152 MB / 389.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.025e-05/0.2904, allocations: 64.22 kB / 389.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2905, allocations: 89.14 kB / 389.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.292, allocations: 0.8099 MB / 390 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/0.292, allocations: 6.906 kB / 390 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/0.2921, allocations: 40.27 kB / 390.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.2921, allocations: 21.5 kB / 390.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009824/0.2931, allocations: 0.4916 MB / 390.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.296, allocations: 2.853 MB / 393.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005247/0.2965, allocations: 226.2 kB / 393.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.2967, allocations: 107 kB / 393.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/0.2969, allocations: 246 kB / 394 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.2969, allocations: 37.89 kB / 394 MB, free: 2.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.685e-06/0.2969, allocations: 0 / 394 MB, free: 2.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.002167/0.2991, allocations: 1.264 MB / 395.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.2992, allocations: 54.41 kB / 395.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.2995, allocations: 298.8 kB / 395.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.2995, allocations: 31.81 kB / 395.7 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.2997, allocations: 409.4 kB / 396.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.335e-05/0.2998, allocations: 133.2 kB / 396.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.2999, allocations: 83.56 kB / 396.3 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.463e-05/0.3, allocations: 351.7 kB / 396.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.3002, allocations: 105.6 kB / 396.7 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.3004, allocations: 257.4 kB / 397 MB, free: 280 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.3009, allocations: 389.4 kB / 397.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3009, allocations: 1.125 kB / 397.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007233/0.3016, allocations: 466.2 kB / 397.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3017, allocations: 6.969 kB / 397.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3017, allocations: 4.531 kB / 397.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.3019, allocations: 39.16 kB / 397.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.3022, allocations: 111.5 kB / 398 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003648/0.3026, allocations: 0.562 MB / 398.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.3028, allocations: 15.92 kB / 398.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.3028, allocations: 17.67 kB / 398.6 MB, free: 15.18 MB / 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.0002738/0.3031, allocations: 226.6 kB / 398.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.433e-05/0.3032, allocations: 40.91 kB / 398.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006001/0.3038, allocations: 323.4 kB / 399.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.84e-06/0.3038, allocations: 7.062 kB / 399.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3038, allocations: 1.672 kB / 399.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3038, allocations: 1.922 kB / 399.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.3053, allocations: 1.019 MB / 400.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3053, allocations: 5.438 kB / 400.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.3057, allocations: 81.31 kB / 400.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001361/0.3058, allocations: 29.48 kB / 400.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.3059, allocations: 10.11 kB / 400.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003178/0.3062, allocations: 0.5559 MB / 400.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.3062, allocations: 3.391 kB / 400.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007693/0.307, allocations: 0.5523 MB / 401.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.204e-05/0.3071, allocations: 105.5 kB / 401.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.3071, allocations: 13.14 kB / 401.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.3073, allocations: 6.453 kB / 401.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.663e-05/0.3073, allocations: 24.95 kB / 401.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.3074, allocations: 13.41 kB / 401.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.3076, allocations: 208.7 kB / 401.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3076, allocations: 4 kB / 401.8 MB, free: 13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005422/0.3081, allocations: 117.1 kB / 401.9 MB, free: 12.99 MB / 334.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.001093/0.3092, allocations: 1.093 MB / 403 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006391/0.3099, allocations: 314.3 kB / 403.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3099, allocations: 1.281 kB / 403.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.3102, allocations: 137.4 kB / 403.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.3107, allocations: 69.83 kB / 403.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.3162, allocations: 4.387 MB / 407.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.3167, allocations: 0.9202 MB / 408.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.3169, allocations: 47 kB / 408.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.3172, allocations: 240.7 kB / 409.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3172, allocations: 0 / 409.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.3508, allocations: 8.413 MB / 417.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.76, allocations: 10.34 kB / 417.5 MB, free: 3.293 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches