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.001862/0.001862, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002224/0.002224, allocations: 219.8 kB / 24.53 MB, free: 4.008 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.507/1.507, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.231/0.231, allocations: 46.93 MB / 361.6 MB, free: 4.211 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002433/0.002433, allocations: 83.86 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3269, allocations: 66.08 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007687/0.3346, allocations: 5.823 MB / 0.5672 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004364/0.3389, allocations: 2.384 MB / 0.5695 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000789/0.3397, allocations: 51.56 kB / 0.5695 GB, free: 12.03 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.3403, allocations: 230 kB / 0.5698 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000498/0.3408, allocations: 182.3 kB / 0.5699 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.342, allocations: 0.4946 MB / 0.5704 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.3433, allocations: 1.114 MB / 0.5715 GB, free: 10.01 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006898/0.344, allocations: 429.8 kB / 0.5719 GB, free: 9.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000558/0.3445, allocations: 386.6 kB / 0.5723 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000478/0.345, allocations: 394 kB / 0.5727 GB, free: 8.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.3451, allocations: 100 kB / 0.5728 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.3454, allocations: 155.9 kB / 0.5729 GB, free: 8.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.3456, allocations: 215.3 kB / 0.5731 GB, free: 8.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.3461, allocations: 473.6 kB / 0.5736 GB, free: 7.879 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.3475, allocations: 1.282 MB / 0.5748 GB, free: 6.594 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3475, allocations: 0 / 0.5748 GB, free: 6.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3475, allocations: 0 / 0.5748 GB, free: 6.594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.3476, allocations: 0 / 0.5748 GB, free: 6.594 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.001747/0.3493, allocations: 1.093 MB / 0.5759 GB, free: 5.469 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.3494, allocations: 8.031 kB / 0.5759 GB, free: 5.461 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.579e-05/0.3494, allocations: 26.19 kB / 0.5759 GB, free: 5.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.3496, allocations: 135.9 kB / 0.576 GB, free: 5.293 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.3498, allocations: 120.2 kB / 0.5762 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009667/0.3508, allocations: 0.526 MB / 0.5767 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.798e-05/0.3508, allocations: 70 kB / 0.5767 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.351, allocations: 95.95 kB / 0.5768 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3525, allocations: 0.8834 MB / 0.5777 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.3526, allocations: 11.94 kB / 0.5777 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.905e-05/0.3527, allocations: 36 kB / 0.5777 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/0.3527, allocations: 24 kB / 0.5778 GB, free: 3.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.3537, allocations: 0.5229 MB / 0.5783 GB, free: 2.922 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004172/0.3579, allocations: 3.52 MB / 0.5817 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005904/0.3585, allocations: 202.7 kB / 0.5819 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.3587, allocations: 100.8 kB / 0.582 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.3588, allocations: 19.98 kB / 0.582 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.3588, allocations: 34.56 kB / 0.5821 GB, free: 14.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.793e-06/0.3588, allocations: 0 / 0.5821 GB, free: 14.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002498/0.3613, allocations: 1.17 MB / 0.5832 GB, free: 13.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3614, allocations: 55.41 kB / 0.5833 GB, free: 13.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.3619, allocations: 401.9 kB / 0.5836 GB, free: 13.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.362, allocations: 29.7 kB / 0.5837 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003788/0.3623, allocations: 483.4 kB / 0.5841 GB, free: 12.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.3625, allocations: 142.8 kB / 0.5843 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.3626, allocations: 102.3 kB / 0.5844 GB, free: 12.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3628, allocations: 358.8 kB / 0.5847 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.363, allocations: 117.3 kB / 0.5848 GB, free: 11.94 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/0.3635, allocations: 311 kB / 0.5851 GB, free: 11.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006702/0.3641, allocations: 463.6 kB / 0.5855 GB, free: 11.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3641, allocations: 0 / 0.5855 GB, free: 11.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008915/0.365, allocations: 0.5127 MB / 0.586 GB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3651, allocations: 8.844 kB / 0.5861 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3651, allocations: 4 kB / 0.5861 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002369/0.3653, allocations: 48.77 kB / 0.5861 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004042/0.3657, allocations: 127.8 kB / 0.5862 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005133/0.3662, allocations: 0.5563 MB / 0.5868 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.3664, allocations: 16 kB / 0.5868 GB, free: 9.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.3665, allocations: 28 kB / 0.5868 GB, free: 9.676 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.0004067/0.3669, allocations: 235 kB / 0.587 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.544e-05/0.367, allocations: 55.67 kB / 0.5871 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000663/0.3676, allocations: 323 kB / 0.5874 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3677, allocations: 4 kB / 0.5874 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3677, allocations: 0 / 0.5874 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3677, allocations: 0 / 0.5874 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.3693, allocations: 1.035 MB / 0.5884 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3693, allocations: 0 / 0.5884 GB, free: 7.953 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.3696, allocations: 87.83 kB / 0.5885 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001477/0.3698, allocations: 33 kB / 0.5885 GB, free: 7.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.3698, allocations: 12 kB / 0.5885 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000395/0.3702, allocations: 0.5445 MB / 0.5891 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3702, allocations: 4.031 kB / 0.5891 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008513/0.3711, allocations: 0.5563 MB / 0.5896 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.487e-05/0.3711, allocations: 43.67 kB / 0.5897 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.226e-05/0.3712, allocations: 8 kB / 0.5897 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3714, allocations: 8 kB / 0.5897 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.816e-05/0.3714, allocations: 31.89 kB / 0.5897 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.3715, allocations: 15.98 kB / 0.5897 GB, free: 6.547 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003152/0.3718, allocations: 267.2 kB / 0.59 GB, free: 6.289 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3718, allocations: 192 / 0.59 GB, free: 6.289 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000581/0.3723, allocations: 128 kB / 0.5901 GB, free: 6.164 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.001223/0.3736, allocations: 1.113 MB / 0.5912 GB, free: 5.004 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006881/0.3743, allocations: 321.3 kB / 0.5915 GB, free: 4.691 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3743, allocations: 0 / 0.5915 GB, free: 4.691 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.3745, allocations: 136.3 kB / 0.5916 GB, free: 4.559 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005734/0.3751, allocations: 81.94 kB / 0.5917 GB, free: 4.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006977/0.3821, allocations: 4.862 MB / 0.5964 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006488/0.3827, allocations: 0.9563 MB / 0.5974 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001957/0.3829, allocations: 60.53 kB / 0.5974 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003715/0.3833, allocations: 291.3 kB / 0.5977 GB, free: 14.01 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3833, allocations: 0 / 0.5977 GB, free: 14.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/0.4206, allocations: 9.893 MB / 0.6074 GB, free: 4.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.74, allocations: 14.59 kB / 0.6074 GB, free: 4.238 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.87840969703393]