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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 122.2 kB / 18.45 MB, free: 4.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 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 1.388/1.388, allocations: 207.6 MB / 231.8 MB, free: 3.93 MB / 174.1 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.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"}) [Timeout 660] "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.00164/0.00164, allocations: 56.34 kB / 342.2 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09319, allocations: 49.12 MB / 391.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007372/0.1006, allocations: 5.437 MB / 396.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003957/0.1045, allocations: 2.138 MB / 398.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007642/0.1053, allocations: 39.75 kB / 399 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005134/0.1058, allocations: 202.2 kB / 399.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004353/0.1062, allocations: 174.4 kB / 399.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000935/0.1072, allocations: 395 kB / 399.7 MB, free: 316 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1083, allocations: 1.002 MB / 400.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006486/0.1089, allocations: 425.1 kB / 401.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.1093, allocations: 346.8 kB / 401.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004071/0.1097, allocations: 362.4 kB / 401.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.1099, allocations: 92 kB / 401.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.1101, allocations: 151.9 kB / 402.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.1103, allocations: 207.4 kB / 402.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003919/0.1107, allocations: 426 kB / 402.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.112, allocations: 1.187 MB / 403.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.112, allocations: 3.938 kB / 403.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.112, allocations: 0 / 403.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.112, allocations: 0 / 403.9 MB, free: 12.11 MB / 334.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.001559/0.1136, allocations: 1.048 MB / 404.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1136, allocations: 8.031 kB / 404.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.1138, allocations: 135.5 kB / 405.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1139, allocations: 96.38 kB / 405.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000884/0.1148, allocations: 0.5299 MB / 405.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.001e-05/0.1149, allocations: 62.38 kB / 405.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.115, allocations: 92.33 kB / 405.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.1164, allocations: 0.8007 MB / 406.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.1164, allocations: 4 kB / 406.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.1165, allocations: 36 kB / 406.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1165, allocations: 20 kB / 406.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009628/0.1175, allocations: 0.4957 MB / 407.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003431/0.1209, allocations: 2.857 MB / 410.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.1214, allocations: 215.5 kB / 410.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.1216, allocations: 100.8 kB / 410.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002541/0.1219, allocations: 247.3 kB / 410.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.1219, allocations: 38.56 kB / 410.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.765e-06/0.1219, allocations: 0 / 410.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002516/0.1244, allocations: 1.265 MB / 411.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.1245, allocations: 59.41 kB / 412 MB, free: 3.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.1248, allocations: 308.4 kB / 412.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.1248, allocations: 33.7 kB / 412.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.1251, allocations: 407.8 kB / 412.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.1252, allocations: 138.8 kB / 412.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.1253, allocations: 90.2 kB / 412.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1255, allocations: 354.7 kB / 413.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.1257, allocations: 105.1 kB / 413.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.126, allocations: 254.7 kB / 413.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005422/0.1266, allocations: 384.7 kB / 414 MB, free: 1.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1266, allocations: 0 / 414 MB, free: 1.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007537/0.1273, allocations: 465.1 kB / 414.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1274, allocations: 11.91 kB / 414.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1274, allocations: 4 kB / 414.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.1276, allocations: 41.38 kB / 414.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.1279, allocations: 111.8 kB / 414.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004521/0.1284, allocations: 0.5601 MB / 415.2 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1286, allocations: 15.98 kB / 415.2 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.1286, allocations: 20 kB / 415.2 MB, free: 140 kB / 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.0003311/0.1289, allocations: 221.8 kB / 415.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.555e-05/0.129, allocations: 43.7 kB / 415.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006239/0.1296, allocations: 318.2 kB / 415.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1296, allocations: 4 kB / 415.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1296, allocations: 4 kB / 415.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1296, allocations: 0 / 415.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.1312, allocations: 1.015 MB / 416.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1312, allocations: 4 kB / 416.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.1315, allocations: 79.89 kB / 416.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.1317, allocations: 32.84 kB / 416.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.1317, allocations: 12.16 kB / 416.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003888/0.1321, allocations: 0.5484 MB / 417.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1321, allocations: 3.938 kB / 417.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007884/0.1329, allocations: 0.5567 MB / 418 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.133, allocations: 104.9 kB / 418.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.133, allocations: 16 kB / 418.2 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.1332, allocations: 11.98 kB / 418.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/0.1333, allocations: 23.97 kB / 418.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.1333, allocations: 19.94 kB / 418.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.1335, allocations: 207.1 kB / 418.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1335, allocations: 0 / 418.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005135/0.134, allocations: 119.9 kB / 418.5 MB, free: 12.63 MB / 350.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.0012/0.1352, allocations: 1.097 MB / 419.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000622/0.1358, allocations: 299.5 kB / 419.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1358, allocations: 0 / 419.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.1361, allocations: 137 kB / 420.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.1366, allocations: 81.44 kB / 420.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006165/0.1428, allocations: 4.39 MB / 424.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006767/0.1435, allocations: 0.9249 MB / 425.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.1436, allocations: 47.34 kB / 425.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.1439, allocations: 239.3 kB / 425.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1439, allocations: 384 / 425.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03925/0.1832, allocations: 8.39 MB / 434.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.39, allocations: 23.72 kB / 434.2 MB, free: 12.66 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.860777906142175]