Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000857/0.000857, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000913/0.000913, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8834/0.8834, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 3.938 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.105e-05/2.291e-05, allocations: 9.172 kB / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.1778/0.1779, allocations: 1.623 MB / 443.8 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003213/0.1782, allocations: 96.28 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.422e-05/0.1782, allocations: 7.094 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.38e-05/0.1783, allocations: 17.06 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.928e-05/0.1784, allocations: 35.78 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001036/0.1785, allocations: 31.98 kB / 443.9 MB, free: 43.26 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 9.601e-05/0.1786, allocations: 129.9 kB / 444.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1787, allocations: 27.03 kB / 444.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.957e-05/0.1788, allocations: 72.39 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.029e-05/0.1788, allocations: 36.12 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.255e-05/0.1788, allocations: 9.031 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.312e-05/0.1788, allocations: 10.19 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.1789, allocations: 24.08 kB / 444.2 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.966e-05/0.1789, allocations: 45.09 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.179, allocations: 132.8 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.179, allocations: 0 / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.179, allocations: 0 / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.179, allocations: 2.469 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003038/0.1793, allocations: 329.1 kB / 444.7 MB, free: 42.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1794, allocations: 10.72 kB / 444.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.484e-05/0.1794, allocations: 44.2 kB / 444.8 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.1794, allocations: 12.92 kB / 444.8 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.1795, allocations: 136.2 kB / 444.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1795, allocations: 8.922 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.1795, allocations: 19.08 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.1797, allocations: 120.4 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1797, allocations: 14.73 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.1797, allocations: 4.125 kB / 445.1 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1797, allocations: 6.75 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7e-05/0.1798, allocations: 62.11 kB / 445.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000401/0.1802, allocations: 473.1 kB / 445.6 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.293e-05/0.1803, allocations: 85.75 kB / 445.7 MB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.594e-05/0.1803, allocations: 25.16 kB / 445.7 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.1803, allocations: 3.234 kB / 445.7 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.3e-05/0.1803, allocations: 41.22 kB / 445.8 MB, free: 42.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.1803, allocations: 0 / 445.8 MB, free: 42.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003157/0.1806, allocations: 149.2 kB / 445.9 MB, free: 42.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.955e-05/0.1806, allocations: 79.89 kB / 446 MB, free: 42.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.249e-05/0.1807, allocations: 123.7 kB / 446.1 MB, free: 41.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.141e-06/0.1807, allocations: 29.33 kB / 446.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.297e-05/0.1807, allocations: 123 kB / 446.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.1808, allocations: 37.25 kB / 446.3 MB, free: 41.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.1808, allocations: 29.44 kB / 446.3 MB, free: 41.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.775e-05/0.1808, allocations: 324.7 kB / 446.7 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.992e-05/0.1808, allocations: 24.23 kB / 446.7 MB, free: 41.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.264e-05/0.1809, allocations: 89.92 kB / 446.8 MB, free: 41.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.466e-05/0.181, allocations: 120.9 kB / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.181, allocations: 0 / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001585/0.1811, allocations: 168.2 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.1811, allocations: 5.75 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1811, allocations: 2.812 kB / 447.1 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001181/0.1813, allocations: 34.25 kB / 447.1 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.891e-05/0.1813, allocations: 28.8 kB / 447.1 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007243/0.182, allocations: 2.522 MB / 449.7 MB, free: 38.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.29e-05/0.1821, allocations: 10.8 kB / 449.7 MB, free: 38.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.1821, allocations: 13.78 kB / 449.7 MB, free: 38.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 5.306e-05/0.1821, allocations: 123.8 kB / 449.8 MB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.1822, allocations: 6.906 kB / 449.8 MB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.471e-05/0.1822, allocations: 14.03 kB / 449.8 MB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.1822, allocations: 3.609 kB / 449.8 MB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1822, allocations: 10.62 kB / 449.8 MB, free: 38.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1822, allocations: 0 / 449.8 MB, free: 38.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.1823, allocations: 169.2 kB / 450 MB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1823, allocations: 6.688 kB / 450 MB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-05/0.1824, allocations: 14.25 kB / 450 MB, free: 38.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-05/0.1824, allocations: 36.38 kB / 450.1 MB, free: 38.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.1824, allocations: 6.594 kB / 450.1 MB, free: 38.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005649/0.183, allocations: 2.511 MB / 452.6 MB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.183, allocations: 6.125 kB / 452.6 MB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.1831, allocations: 303.5 kB / 452.9 MB, free: 35.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-06/0.1831, allocations: 6.641 kB / 452.9 MB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.503e-06/0.1831, allocations: 0 / 452.9 MB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.518e-05/0.1832, allocations: 7 kB / 452.9 MB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.1832, allocations: 10.11 kB / 452.9 MB, free: 35.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.1832, allocations: 10.2 kB / 452.9 MB, free: 35.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.962e-05/0.1832, allocations: 90.72 kB / 453 MB, free: 35.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1832, allocations: 4.125 kB / 453 MB, free: 35.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002142/0.1834, allocations: 39.39 kB / 453 MB, free: 35.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002146/0.1837, allocations: 0.8392 MB / 453.9 MB, free: 34.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00023/0.1839, allocations: 298.8 kB / 454.2 MB, free: 34.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1839, allocations: 4.125 kB / 454.2 MB, free: 34.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.737e-05/0.184, allocations: 251.2 kB / 454.4 MB, free: 34.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.1843, allocations: 22.56 kB / 454.4 MB, free: 34.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.1853, allocations: 1.881 MB / 456.3 MB, free: 32.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.454e-05/0.1854, allocations: 99.64 kB / 456.4 MB, free: 32.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.597e-05/0.1854, allocations: 3.797 kB / 456.4 MB, free: 32.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.1854, allocations: 35.64 kB / 456.5 MB, free: 32.39 MB / 410.7 MB Notification: Performance of SimCode: time 8.21e-07/0.1854, allocations: 0 / 456.5 MB, free: 32.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.2047, allocations: 3.796 MB / 460.3 MB, free: 31.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.847/7.052, allocations: 3.391 kB / 460.3 MB, free: 31.28 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.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: 8.974990925751626]