Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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.001369/0.001369, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 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.001687/0.001687, allocations: 213.9 kB / 23.74 MB, free: 4.66 MB / 14.72 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 1.545/1.545, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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.2413/0.2413, allocations: 46.92 MB / 360.8 MB, free: 4.176 MB / 286.1 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 79.88 kB / 0.4962 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3566, allocations: 66.08 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008177/0.3648, allocations: 5.83 MB / 0.5664 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005318/0.3701, allocations: 2.38 MB / 0.5687 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.3713, allocations: 55.56 kB / 0.5688 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008113/0.3722, allocations: 230 kB / 0.569 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007868/0.3729, allocations: 186.2 kB / 0.5692 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3744, allocations: 494.6 kB / 0.5697 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.3759, allocations: 1.11 MB / 0.5707 GB, free: 9.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008495/0.3768, allocations: 437.8 kB / 0.5712 GB, free: 9.535 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006798/0.3774, allocations: 382.6 kB / 0.5715 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005109/0.378, allocations: 398 kB / 0.5719 GB, free: 8.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3781, allocations: 96 kB / 0.572 GB, free: 8.676 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.3784, allocations: 159.9 kB / 0.5721 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.3786, allocations: 211.3 kB / 0.5723 GB, free: 8.312 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004501/0.379, allocations: 473.6 kB / 0.5728 GB, free: 7.848 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.3807, allocations: 1.29 MB / 0.5741 GB, free: 6.555 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3807, allocations: 0 / 0.5741 GB, free: 6.555 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3807, allocations: 0 / 0.5741 GB, free: 6.555 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.481e-05/0.3807, allocations: 7.938 kB / 0.5741 GB, free: 6.547 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001752/0.3824, allocations: 1.077 MB / 0.5751 GB, free: 5.438 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.3825, allocations: 12.03 kB / 0.5751 GB, free: 5.426 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.3826, allocations: 143.9 kB / 0.5753 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.3829, allocations: 116.2 kB / 0.5754 GB, free: 5.164 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.384, allocations: 0.5262 MB / 0.5759 GB, free: 4.609 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.089e-05/0.3841, allocations: 70 kB / 0.576 GB, free: 4.539 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.3842, allocations: 91.95 kB / 0.576 GB, free: 4.449 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.3857, allocations: 0.8892 MB / 0.5769 GB, free: 3.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-05/0.3858, allocations: 4 kB / 0.5769 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.891e-05/0.3858, allocations: 36 kB / 0.577 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.3859, allocations: 28 kB / 0.577 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.387, allocations: 0.5268 MB / 0.5775 GB, free: 2.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004333/0.3913, allocations: 3.512 MB / 0.5809 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.3919, allocations: 206.7 kB / 0.5811 GB, free: 15.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.3921, allocations: 96.81 kB / 0.5812 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.3923, allocations: 19.98 kB / 0.5812 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.3923, allocations: 34.56 kB / 0.5813 GB, free: 14.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.083e-06/0.3923, allocations: 0 / 0.5813 GB, free: 14.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002587/0.3949, allocations: 1.162 MB / 0.5824 GB, free: 13.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.3949, allocations: 59.34 kB / 0.5825 GB, free: 13.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004793/0.3954, allocations: 401.9 kB / 0.5828 GB, free: 13.17 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.3954, allocations: 29.7 kB / 0.5829 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/0.3958, allocations: 491.4 kB / 0.5833 GB, free: 12.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.3959, allocations: 134.9 kB / 0.5835 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.3961, allocations: 98.3 kB / 0.5836 GB, free: 12.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.3963, allocations: 358.8 kB / 0.5839 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.3965, allocations: 113.2 kB / 0.584 GB, free: 11.94 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.3969, allocations: 315 kB / 0.5843 GB, free: 11.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000722/0.3976, allocations: 455.6 kB / 0.5847 GB, free: 11.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3976, allocations: 4 kB / 0.5847 GB, free: 11.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009179/0.3985, allocations: 0.5096 MB / 0.5852 GB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3986, allocations: 15.97 kB / 0.5853 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.3986, allocations: 8 kB / 0.5853 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002055/0.3988, allocations: 40.84 kB / 0.5853 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.3993, allocations: 131.7 kB / 0.5854 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004911/0.3997, allocations: 0.5524 MB / 0.586 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.4, allocations: 16 kB / 0.586 GB, free: 9.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/0.4, allocations: 36.05 kB / 0.586 GB, free: 9.668 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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.0003504/0.4004, allocations: 227 kB / 0.5862 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.809e-05/0.4004, allocations: 59.59 kB / 0.5863 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006461/0.4011, allocations: 322.9 kB / 0.5866 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4011, allocations: 8.031 kB / 0.5866 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.4011, allocations: 4 kB / 0.5866 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.4011, allocations: 3.984 kB / 0.5866 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.4029, allocations: 1.027 MB / 0.5876 GB, free: 7.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4029, allocations: 4.156 kB / 0.5876 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.4033, allocations: 79.89 kB / 0.5877 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/0.4034, allocations: 40.78 kB / 0.5877 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.4035, allocations: 11.98 kB / 0.5878 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005111/0.404, allocations: 0.5407 MB / 0.5883 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.404, allocations: 3.984 kB / 0.5883 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008424/0.4048, allocations: 0.5563 MB / 0.5888 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.736e-05/0.4049, allocations: 39.67 kB / 0.5889 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.405, allocations: 19.98 kB / 0.5889 GB, free: 6.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.4052, allocations: 8 kB / 0.5889 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.616e-05/0.4052, allocations: 27.89 kB / 0.5889 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.4053, allocations: 12 kB / 0.5889 GB, free: 6.539 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000312/0.4056, allocations: 271.1 kB / 0.5892 GB, free: 6.277 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4056, allocations: 0 / 0.5892 GB, free: 6.277 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005756/0.4061, allocations: 124 kB / 0.5893 GB, free: 6.156 MB / 430.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.y,inertia2b.w,torqueToAngle2b.y,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.001334/0.4075, allocations: 1.113 MB / 0.5904 GB, free: 4.996 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007598/0.4082, allocations: 321.3 kB / 0.5907 GB, free: 4.684 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4082, allocations: 64 / 0.5907 GB, free: 4.684 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.4085, allocations: 131.8 kB / 0.5908 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.4091, allocations: 82.19 kB / 0.5909 GB, free: 4.477 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007546/0.4166, allocations: 4.865 MB / 0.5957 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/0.4174, allocations: 0.9641 MB / 0.5966 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.4176, allocations: 52.55 kB / 0.5966 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.418, allocations: 299.3 kB / 0.5969 GB, free: 13.99 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.418, allocations: 0 / 0.5969 GB, free: 13.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04507/0.4631, allocations: 9.864 MB / 0.6066 GB, free: 4.258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.82, allocations: 1.312 kB / 0.6066 GB, free: 4.258 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.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: 16.904915733030066]