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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009214/0.0009214, allocations: 79.7 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005267/0.005267, allocations: 167.7 kB / 24.7 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8692/0.8692, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.331e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1238/0.1238, allocations: 4.808 MB / 303.2 MB, free: 12.67 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.1261, allocations: 2.027 MB / 305.3 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002793/0.1264, allocations: 52.56 kB / 305.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003452/0.1267, allocations: 204.5 kB / 305.5 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.1269, allocations: 187.8 kB / 305.7 MB, free: 11.85 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005871/0.1275, allocations: 397.1 kB / 306.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006179/0.1281, allocations: 1.032 MB / 307.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.1285, allocations: 399 kB / 307.5 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.129, allocations: 0.5176 MB / 308 MB, free: 10.69 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.1292, allocations: 258.6 kB / 308.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.514e-05/0.1293, allocations: 91.81 kB / 308.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.1295, allocations: 153.3 kB / 308.5 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.1296, allocations: 209.8 kB / 308.7 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.1298, allocations: 288.9 kB / 309 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009206/0.1307, allocations: 1.186 MB / 310.2 MB, free: 9.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1307, allocations: 1.812 kB / 310.2 MB, free: 9.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1307, allocations: 0 / 310.2 MB, free: 9.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1307, allocations: 0 / 310.2 MB, free: 9.82 MB / 282.7 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.000916/0.1317, allocations: 0.9696 MB / 311.2 MB, free: 9.137 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1317, allocations: 13.73 kB / 311.2 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.1318, allocations: 136.5 kB / 311.3 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.417e-05/0.1319, allocations: 91.42 kB / 311.4 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005371/0.1324, allocations: 471.2 kB / 311.9 MB, free: 8.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.1325, allocations: 64.41 kB / 311.9 MB, free: 8.633 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.1325, allocations: 89.83 kB / 312 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008969/0.1334, allocations: 0.7966 MB / 312.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.1335, allocations: 7.719 kB / 312.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.1335, allocations: 36.56 kB / 312.9 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.1335, allocations: 22.16 kB / 312.9 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.1342, allocations: 0.4926 MB / 313.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.136, allocations: 2.574 MB / 315.9 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000352/0.1364, allocations: 208.9 kB / 316.1 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1365, allocations: 94.52 kB / 316.2 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.036e-05/0.1366, allocations: 19.7 kB / 316.3 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.1366, allocations: 46.09 kB / 316.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.403e-06/0.1366, allocations: 0 / 316.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.001356/0.1379, allocations: 1.115 MB / 317.4 MB, free: 5.273 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.138, allocations: 56.34 kB / 317.5 MB, free: 5.211 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.1382, allocations: 306.5 kB / 317.8 MB, free: 5.039 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1382, allocations: 34.89 kB / 317.8 MB, free: 5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.1383, allocations: 420 kB / 318.2 MB, free: 4.672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.932e-05/0.1384, allocations: 138.5 kB / 318.4 MB, free: 4.562 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.14e-05/0.1385, allocations: 82.61 kB / 318.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.886e-05/0.1385, allocations: 352.7 kB / 318.8 MB, free: 4.184 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.1386, allocations: 105.4 kB / 318.9 MB, free: 4.148 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.1388, allocations: 256.5 kB / 319.1 MB, free: 3.934 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.1391, allocations: 384.8 kB / 319.5 MB, free: 3.645 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1391, allocations: 1.188 kB / 319.5 MB, free: 3.645 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004453/0.1396, allocations: 462.7 kB / 320 MB, free: 3.434 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1396, allocations: 6.844 kB / 320 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.1396, allocations: 5.562 kB / 320 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/0.1397, allocations: 35.11 kB / 320 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.1399, allocations: 111.8 kB / 320.1 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001829/0.1401, allocations: 0.554 MB / 320.7 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.094e-05/0.1402, allocations: 16.81 kB / 320.7 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.1402, allocations: 22.3 kB / 320.7 MB, free: 2.859 MB / 282.7 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.0001515/0.1404, allocations: 229.5 kB / 320.9 MB, free: 2.668 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.1404, allocations: 38.97 kB / 321 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003652/0.1408, allocations: 322.7 kB / 321.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1408, allocations: 4.219 kB / 321.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1408, allocations: 3.375 kB / 321.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1408, allocations: 2.766 kB / 321.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007981/0.1416, allocations: 0.9621 MB / 322.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1416, allocations: 2.094 kB / 322.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.1418, allocations: 81.08 kB / 322.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.517e-05/0.1419, allocations: 31.56 kB / 322.4 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.1419, allocations: 8.406 kB / 322.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001398/0.142, allocations: 0.5531 MB / 322.9 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.142, allocations: 1.406 kB / 322.9 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.1425, allocations: 0.5429 MB / 323.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.88e-05/0.1425, allocations: 38.8 kB / 323.5 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.1425, allocations: 10.53 kB / 323.5 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.248e-05/0.1426, allocations: 8.875 kB / 323.5 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.1426, allocations: 24.17 kB / 323.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.1426, allocations: 12.19 kB / 323.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.1428, allocations: 210.4 kB / 323.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1428, allocations: 0 / 323.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000302/0.1431, allocations: 125.2 kB / 323.9 MB, free: 0.8164 MB / 282.7 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.0006601/0.1437, allocations: 1.096 MB / 325 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.1441, allocations: 295 kB / 325.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1441, allocations: 1.281 kB / 325.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.1443, allocations: 138.7 kB / 325.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.1446, allocations: 61.73 kB / 325.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003766/0.1484, allocations: 4.188 MB / 329.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.1486, allocations: 324.9 kB / 330 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1488, allocations: 50.55 kB / 330 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.149, allocations: 240.8 kB / 330.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.149, allocations: 0 / 330.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.1716, allocations: 9.044 MB / 339.3 MB, free: 4.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/7.906, allocations: 7.891 kB / 339.3 MB, free: 4.828 MB / 298.7 MB " [Timeout remaining time 652] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.497782891616225]