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.001057/0.001057, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.0009898/0.0009898, allocations: 190 kB / 18.07 MB, free: 5.414 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.236/1.236, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001065/0.001065, allocations: 47.94 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06944/0.07051, allocations: 46.62 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005631/0.07618, allocations: 5.402 MB / 332.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.0789, allocations: 2.068 MB / 334.2 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003444/0.07926, allocations: 39.75 kB / 334.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000363/0.07964, allocations: 162.8 kB / 334.4 MB, free: 13.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.07991, allocations: 142.9 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.08054, allocations: 335.4 kB / 334.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007047/0.08125, allocations: 0.9547 MB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005911/0.08185, allocations: 0.5435 MB / 336.3 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000271/0.08213, allocations: 294.9 kB / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.08243, allocations: 342.3 kB / 336.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.159e-05/0.08251, allocations: 52 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.08271, allocations: 107.9 kB / 337.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.08284, allocations: 159.4 kB / 337.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.08313, allocations: 393.9 kB / 337.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007474/0.08388, allocations: 1.102 MB / 338.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.08389, allocations: 0 / 338.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.0839, allocations: 3.938 kB / 338.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.08391, allocations: 0 / 338.8 MB, free: 8.656 MB / 286.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.001192/0.08511, allocations: 1.022 MB / 339.8 MB, free: 7.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.08515, allocations: 8.031 kB / 339.8 MB, free: 7.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.08528, allocations: 131.5 kB / 339.9 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.0854, allocations: 95.81 kB / 340 MB, free: 7.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/0.08596, allocations: 0.4947 MB / 340.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/0.08601, allocations: 70.31 kB / 340.6 MB, free: 6.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.08612, allocations: 88.28 kB / 340.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.08736, allocations: 0.8046 MB / 341.5 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.0874, allocations: 7.984 kB / 341.5 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.39e-05/0.08746, allocations: 39.94 kB / 341.5 MB, free: 5.766 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.08748, allocations: 20 kB / 341.5 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/0.08835, allocations: 0.4918 MB / 342 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.09112, allocations: 2.895 MB / 344.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.09162, allocations: 230.6 kB / 345.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.09179, allocations: 100.8 kB / 345.2 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/0.09204, allocations: 251.3 kB / 345.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.09207, allocations: 38.55 kB / 345.5 MB, free: 1.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.09208, allocations: 0 / 345.5 MB, free: 1.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002053/0.09413, allocations: 1.259 MB / 346.8 MB, free: 200 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.09419, allocations: 55.41 kB / 346.8 MB, free: 132 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.09449, allocations: 304.4 kB / 347.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.09452, allocations: 29.7 kB / 347.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.09472, allocations: 398.6 kB / 347.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.553e-05/0.09481, allocations: 138 kB / 347.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.09493, allocations: 90.16 kB / 347.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.09506, allocations: 350.7 kB / 348.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.09525, allocations: 113 kB / 348.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.0955, allocations: 250.5 kB / 348.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.09596, allocations: 384.7 kB / 348.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.09597, allocations: 7.984 kB / 348.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006333/0.09661, allocations: 461.1 kB / 349.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.09664, allocations: 4 kB / 349.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.09665, allocations: 4 kB / 349.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.09682, allocations: 36.84 kB / 349.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.09715, allocations: 111.8 kB / 349.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000317/0.09748, allocations: 0.5605 MB / 350 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.09765, allocations: 12 kB / 350 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.0977, allocations: 24 kB / 350 MB, free: 12.71 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.0002386/0.09794, allocations: 213.7 kB / 350.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.09801, allocations: 39.47 kB / 350.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005555/0.09857, allocations: 326.1 kB / 350.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.09859, allocations: 4 kB / 350.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.0986, allocations: 0 / 350.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.09861, allocations: 7.984 kB / 350.6 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.09987, allocations: 1.018 MB / 351.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.09988, allocations: 3.984 kB / 351.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.1002, allocations: 83.89 kB / 351.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001194/0.1003, allocations: 32.83 kB / 351.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.1004, allocations: 12 kB / 351.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002904/0.1007, allocations: 0.5562 MB / 352.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1007, allocations: 4.031 kB / 352.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006635/0.1014, allocations: 0.5399 MB / 352.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.113e-05/0.1014, allocations: 112.6 kB / 353 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.1015, allocations: 8 kB / 353 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.1016, allocations: 8 kB / 353 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.1017, allocations: 24.16 kB / 353 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.1017, allocations: 15.94 kB / 353 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.1019, allocations: 215 kB / 353.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1019, allocations: 4 kB / 353.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.1024, allocations: 124 kB / 353.4 MB, free: 9.199 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.0009223/0.1033, allocations: 1.09 MB / 354.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005246/0.1038, allocations: 304.1 kB / 354.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1039, allocations: 0 / 354.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.1041, allocations: 143.8 kB / 354.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.1046, allocations: 62.41 kB / 355 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/0.1095, allocations: 4.763 MB / 359.7 MB, free: 2.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.1099, allocations: 0.9171 MB / 360.6 MB, free: 1.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.1101, allocations: 51.31 kB / 360.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.1104, allocations: 247.3 kB / 360.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1104, allocations: 0 / 360.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01813/0.1285, allocations: 7.791 MB / 368.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.1287, allocations: 239.9 kB / 369 MB, free: 9.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/1.938, allocations: 0 / 369 MB, free: 9.246 MB / 318.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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches