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.0009601/0.00096, allocations: 95.14 kB / 17.3 MB, free: 6.051 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.001119/0.001119, allocations: 182.5 kB / 18.21 MB, free: 5.41 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.245/1.245, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004905/0.0004903, allocations: 12 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09398, allocations: 47.57 MB / 329 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005607/0.09963, allocations: 4.947 MB / 334 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.1034, allocations: 2.045 MB / 336 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007765/0.1042, allocations: 35.81 kB / 336.1 MB, free: 12.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004095/0.1046, allocations: 162.8 kB / 336.2 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004293/0.105, allocations: 138.9 kB / 336.4 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00083/0.1059, allocations: 335.4 kB / 336.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009924/0.1069, allocations: 0.9508 MB / 337.6 MB, free: 11.03 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007375/0.1076, allocations: 0.5357 MB / 338.2 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1079, allocations: 246.8 kB / 338.4 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.1083, allocations: 270.4 kB / 338.7 MB, free: 9.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.1083, allocations: 36 kB / 338.7 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002091/0.1086, allocations: 91.91 kB / 338.8 MB, free: 9.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1087, allocations: 127.4 kB / 338.9 MB, free: 9.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003194/0.109, allocations: 371.7 kB / 339.3 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009445/0.11, allocations: 1.063 MB / 340.4 MB, free: 8.273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.11, allocations: 0 / 340.4 MB, free: 8.273 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.11, allocations: 0 / 340.4 MB, free: 8.273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.11, allocations: 0 / 340.4 MB, free: 8.273 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.001281/0.1113, allocations: 0.8814 MB / 341.2 MB, free: 7.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1113, allocations: 15.97 kB / 341.3 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.1115, allocations: 127.5 kB / 341.4 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.1116, allocations: 87.91 kB / 341.5 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006254/0.1122, allocations: 0.4947 MB / 342 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.47e-05/0.1123, allocations: 66.38 kB / 342 MB, free: 6.508 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.1124, allocations: 96.27 kB / 342.1 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.1138, allocations: 0.8004 MB / 342.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.1139, allocations: 15.89 kB / 342.9 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.114, allocations: 36 kB / 343 MB, free: 5.523 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.114, allocations: 20 kB / 343 MB, free: 5.504 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.1149, allocations: 0.4957 MB / 343.5 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.1182, allocations: 2.899 MB / 346.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1188, allocations: 234.6 kB / 346.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.119, allocations: 96.83 kB / 346.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002648/0.1193, allocations: 259.3 kB / 347 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.1193, allocations: 38.56 kB / 347 MB, free: 1.289 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.044e-06/0.1193, allocations: 0 / 347 MB, free: 1.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002422/0.1218, allocations: 1.263 MB / 348.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.1218, allocations: 55.41 kB / 348.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003391/0.1222, allocations: 316.3 kB / 348.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.1222, allocations: 29.7 kB / 348.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.1224, allocations: 394.5 kB / 349 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.1226, allocations: 142 kB / 349.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.928e-05/0.1226, allocations: 45.7 kB / 349.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1228, allocations: 346.8 kB / 349.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.123, allocations: 113.1 kB / 349.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.1233, allocations: 258.5 kB / 349.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005112/0.1238, allocations: 384.7 kB / 350.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1238, allocations: 0 / 350.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006986/0.1245, allocations: 468.9 kB / 350.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1245, allocations: 8 kB / 350.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1246, allocations: 7.938 kB / 350.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.1248, allocations: 36.84 kB / 350.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.1251, allocations: 112.3 kB / 350.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004039/0.1255, allocations: 0.5601 MB / 351.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.1257, allocations: 16 kB / 351.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.1257, allocations: 24 kB / 351.5 MB, free: 12.46 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.0003097/0.1261, allocations: 213.7 kB / 351.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.1261, allocations: 43.53 kB / 351.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006061/0.1267, allocations: 322 kB / 352.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.1268, allocations: 4 kB / 352.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1268, allocations: 48 / 352.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1268, allocations: 7.969 kB / 352.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.1282, allocations: 1.022 MB / 353.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1282, allocations: 8.141 kB / 353.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.1285, allocations: 79.91 kB / 353.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.1287, allocations: 28.84 kB / 353.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.1287, allocations: 15.92 kB / 353.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003296/0.129, allocations: 0.5485 MB / 353.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.129, allocations: 0 / 353.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.1298, allocations: 0.5555 MB / 354.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.827e-05/0.1299, allocations: 120.6 kB / 354.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.362e-05/0.13, allocations: 8 kB / 354.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1301, allocations: 8 kB / 354.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.1302, allocations: 31.84 kB / 354.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.1302, allocations: 8 kB / 354.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.1304, allocations: 207.1 kB / 354.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1304, allocations: 8 kB / 354.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.1309, allocations: 120 kB / 354.9 MB, free: 8.941 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.001125/0.1321, allocations: 1.109 MB / 356 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.1326, allocations: 307.8 kB / 356.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1327, allocations: 0 / 356.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.1329, allocations: 137.1 kB / 356.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.1335, allocations: 73.72 kB / 356.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006161/0.1396, allocations: 4.933 MB / 361.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005506/0.1402, allocations: 0.921 MB / 362.3 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.1404, allocations: 47.34 kB / 362.4 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.1406, allocations: 247.4 kB / 362.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1406, allocations: 0 / 362.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/0.2733, allocations: 7.656 MB / 370.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.2735, allocations: 251 kB / 370.5 MB, free: 8.949 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.349, allocations: 0 / 370.5 MB, free: 8.949 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