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.0008916/0.0008916, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.005775/0.005775, allocations: 162.5 kB / 24.69 MB, free: 8.887 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.9082/0.9082, 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 2.094e-06/2.094e-06, allocations: 0 / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.395e-05/2.604e-05, allocations: 2.281 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.1368/0.1369, allocations: 4.805 MB / 303.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1398, allocations: 2.028 MB / 305.3 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006796/0.1405, allocations: 52.56 kB / 305.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003922/0.1409, allocations: 207.5 kB / 305.5 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003328/0.1412, allocations: 181.2 kB / 305.7 MB, free: 12.1 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008653/0.1421, allocations: 392.2 kB / 306.1 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007668/0.1429, allocations: 1.041 MB / 307.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004825/0.1434, allocations: 399 kB / 307.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005149/0.1439, allocations: 0.5206 MB / 308 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002946/0.1442, allocations: 255.2 kB / 308.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.635e-05/0.1443, allocations: 96.94 kB / 308.4 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.1445, allocations: 151.4 kB / 308.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1446, allocations: 202.8 kB / 308.7 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.1448, allocations: 293.5 kB / 309 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.1459, allocations: 1.186 MB / 310.2 MB, free: 9.969 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.1459, allocations: 1.188 kB / 310.2 MB, free: 9.969 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1459, allocations: 3.938 kB / 310.2 MB, free: 9.965 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1459, allocations: 0 / 310.2 MB, free: 9.965 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.001034/0.147, allocations: 0.9659 MB / 311.2 MB, free: 9.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.147, allocations: 13.98 kB / 311.2 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.1471, allocations: 132.1 kB / 311.3 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.483e-05/0.1472, allocations: 91.81 kB / 311.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006052/0.1478, allocations: 471.4 kB / 311.9 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.1479, allocations: 61 kB / 311.9 MB, free: 8.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.1479, allocations: 88.94 kB / 312 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.149, allocations: 0.8047 MB / 312.8 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.149, allocations: 10.8 kB / 312.8 MB, free: 8.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.149, allocations: 40.38 kB / 312.9 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.149, allocations: 21.41 kB / 312.9 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006879/0.1497, allocations: 0.4887 MB / 313.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.152, allocations: 2.571 MB / 315.9 MB, free: 6.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.1524, allocations: 209.1 kB / 316.1 MB, free: 6.188 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1525, allocations: 97.47 kB / 316.2 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.1527, allocations: 16.55 kB / 316.3 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.1527, allocations: 49.84 kB / 316.3 MB, free: 6.094 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.966e-06/0.1527, allocations: 0 / 316.3 MB, free: 6.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.001778/0.1545, allocations: 1.12 MB / 317.4 MB, free: 5.418 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.1545, allocations: 59.12 kB / 317.5 MB, free: 5.352 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.1547, allocations: 306.8 kB / 317.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1548, allocations: 35.8 kB / 317.8 MB, free: 5.141 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.1549, allocations: 408.1 kB / 318.2 MB, free: 4.824 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.155, allocations: 141.3 kB / 318.4 MB, free: 4.711 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.577e-05/0.1551, allocations: 82.22 kB / 318.4 MB, free: 4.664 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.1551, allocations: 356.7 kB / 318.8 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.1553, allocations: 106.6 kB / 318.9 MB, free: 4.293 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.1555, allocations: 251.9 kB / 319.1 MB, free: 4.082 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.1558, allocations: 384.8 kB / 319.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1558, allocations: 1.438 kB / 319.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005009/0.1563, allocations: 466.3 kB / 320 MB, free: 3.578 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1563, allocations: 7.25 kB / 320 MB, free: 3.578 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1563, allocations: 5.5 kB / 320 MB, free: 3.578 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/0.1565, allocations: 36.06 kB / 320 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.1568, allocations: 110.3 kB / 320.1 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002311/0.157, allocations: 0.5634 MB / 320.7 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1571, allocations: 15.33 kB / 320.7 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.1572, allocations: 22.59 kB / 320.7 MB, free: 2.996 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.0002401/0.1574, allocations: 217.9 kB / 320.9 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.1574, allocations: 38.44 kB / 321 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004404/0.1579, allocations: 323 kB / 321.3 MB, free: 2.637 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1579, allocations: 7.25 kB / 321.3 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.1579, allocations: 2.031 kB / 321.3 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1579, allocations: 2.953 kB / 321.3 MB, free: 2.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.1589, allocations: 0.953 MB / 322.3 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1589, allocations: 7.438 kB / 322.3 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.1591, allocations: 71.94 kB / 322.3 MB, free: 2.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.1593, allocations: 37.91 kB / 322.4 MB, free: 2.023 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.1593, allocations: 17.78 kB / 322.4 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001625/0.1594, allocations: 0.5481 MB / 322.9 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1594, allocations: 2.219 kB / 322.9 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005033/0.1599, allocations: 0.5407 MB / 323.5 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.16, allocations: 34.77 kB / 323.5 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.16, allocations: 11.52 kB / 323.5 MB, free: 1.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.781e-05/0.1601, allocations: 9.016 kB / 323.5 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.1601, allocations: 30.02 kB / 323.6 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1602, allocations: 14.12 kB / 323.6 MB, free: 1.098 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.1603, allocations: 208.5 kB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1603, allocations: 0 / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004152/0.1607, allocations: 121.2 kB / 323.9 MB, free: 0.9688 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.0006693/0.1614, allocations: 1.098 MB / 325 MB, free: 100 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000443/0.1619, allocations: 285.6 kB / 325.3 MB, free: 12 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1619, allocations: 0 / 325.3 MB, free: 12 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.162, allocations: 149.7 kB / 325.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.1624, allocations: 68.56 kB / 325.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004495/0.1669, allocations: 4.183 MB / 329.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1672, allocations: 327.8 kB / 330 MB, free: 12.67 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.1673, allocations: 51.27 kB / 330 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.1676, allocations: 248 kB / 330.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1676, allocations: 0 / 330.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.1956, allocations: 9.035 MB / 339.3 MB, free: 4.945 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.165, allocations: 15.94 kB / 339.3 MB, free: 4.93 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable directInertia.inertia.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.932006726041436]