Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.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.001644/0.001644, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001903/0.001903, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.238/0.238, allocations: 46.93 MB / 361.7 MB, free: 4.305 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 63.91 kB / 0.4969 GB, free: 7.957 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3034, allocations: 66.04 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007905/0.3113, allocations: 5.82 MB / 0.5671 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004526/0.3159, allocations: 2.391 MB / 0.5694 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007206/0.3166, allocations: 55.5 kB / 0.5695 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005572/0.3172, allocations: 234 kB / 0.5697 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004715/0.3176, allocations: 182.3 kB / 0.5699 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.3188, allocations: 0.4908 MB / 0.5703 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.3205, allocations: 1.11 MB / 0.5714 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008394/0.3213, allocations: 433.8 kB / 0.5718 GB, free: 9.719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007437/0.322, allocations: 378.7 kB / 0.5722 GB, free: 9.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005771/0.3226, allocations: 394 kB / 0.5726 GB, free: 8.961 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.3228, allocations: 96 kB / 0.5727 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000343/0.3231, allocations: 163.9 kB / 0.5728 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.3233, allocations: 211.3 kB / 0.573 GB, free: 8.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.3238, allocations: 469.6 kB / 0.5735 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001646/0.3254, allocations: 1.294 MB / 0.5747 GB, free: 6.742 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3255, allocations: 0 / 0.5747 GB, free: 6.742 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3255, allocations: 0 / 0.5747 GB, free: 6.742 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.3255, allocations: 0 / 0.5747 GB, free: 6.742 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.001711/0.3272, allocations: 1.087 MB / 0.5758 GB, free: 5.625 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3272, allocations: 12.03 kB / 0.5758 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.093e-05/0.3273, allocations: 26.19 kB / 0.5758 GB, free: 5.586 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.3274, allocations: 143.9 kB / 0.576 GB, free: 5.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.3278, allocations: 116.2 kB / 0.5761 GB, free: 5.324 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3289, allocations: 0.5183 MB / 0.5766 GB, free: 4.777 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.3289, allocations: 66 kB / 0.5767 GB, free: 4.715 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.3291, allocations: 95.95 kB / 0.5767 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.3306, allocations: 0.893 MB / 0.5776 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.3307, allocations: 7.938 kB / 0.5776 GB, free: 3.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.3307, allocations: 40 kB / 0.5777 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.3308, allocations: 23.94 kB / 0.5777 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.3318, allocations: 0.5307 MB / 0.5782 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.3359, allocations: 3.512 MB / 0.5816 GB, free: 15.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.3365, allocations: 204.4 kB / 0.5818 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.3367, allocations: 96.77 kB / 0.5819 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/0.3368, allocations: 15.98 kB / 0.5819 GB, free: 15.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.3369, allocations: 38.56 kB / 0.582 GB, free: 15.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.843e-06/0.3369, allocations: 0 / 0.582 GB, free: 15.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002475/0.3394, allocations: 1.147 MB / 0.5831 GB, free: 13.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.3394, allocations: 63.39 kB / 0.5832 GB, free: 13.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.3399, allocations: 393.9 kB / 0.5835 GB, free: 13.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.3399, allocations: 37.7 kB / 0.5836 GB, free: 13.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.3403, allocations: 483.4 kB / 0.584 GB, free: 12.83 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.3404, allocations: 138.8 kB / 0.5842 GB, free: 12.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.3405, allocations: 102.3 kB / 0.5843 GB, free: 12.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3407, allocations: 358.8 kB / 0.5846 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.3409, allocations: 121.2 kB / 0.5847 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.3413, allocations: 307 kB / 0.585 GB, free: 11.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006422/0.342, allocations: 459.6 kB / 0.5854 GB, free: 11.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.342, allocations: 0 / 0.5854 GB, free: 11.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008934/0.3429, allocations: 0.5208 MB / 0.586 GB, free: 10.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3429, allocations: 8 kB / 0.586 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3429, allocations: 4 kB / 0.586 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.3431, allocations: 40.78 kB / 0.586 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.3435, allocations: 128.4 kB / 0.5861 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004476/0.3439, allocations: 0.5524 MB / 0.5867 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.3442, allocations: 20 kB / 0.5867 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.3442, allocations: 24 kB / 0.5867 GB, free: 9.855 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.0003391/0.3446, allocations: 241.5 kB / 0.5869 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.287e-05/0.3447, allocations: 55.61 kB / 0.587 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006659/0.3453, allocations: 331.3 kB / 0.5873 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3453, allocations: 4 kB / 0.5873 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3453, allocations: 0 / 0.5873 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3453, allocations: 0 / 0.5873 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001608/0.3469, allocations: 1.034 MB / 0.5883 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.347, allocations: 0 / 0.5883 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.3473, allocations: 91.77 kB / 0.5884 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.3475, allocations: 28.84 kB / 0.5884 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3475, allocations: 8 kB / 0.5884 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004004/0.3479, allocations: 0.5486 MB / 0.589 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.3479, allocations: 4.031 kB / 0.589 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008554/0.3488, allocations: 0.5563 MB / 0.5895 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.3488, allocations: 43.67 kB / 0.5896 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.257e-05/0.3489, allocations: 12 kB / 0.5896 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.3491, allocations: 11.98 kB / 0.5896 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.3491, allocations: 31.92 kB / 0.5896 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.3491, allocations: 8 kB / 0.5896 GB, free: 6.715 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003222/0.3495, allocations: 279.1 kB / 0.5899 GB, free: 6.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3495, allocations: 0 / 0.5899 GB, free: 6.441 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.35, allocations: 124 kB / 0.59 GB, free: 6.32 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.001216/0.3512, allocations: 1.108 MB / 0.5911 GB, free: 5.164 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006923/0.3519, allocations: 320.5 kB / 0.5914 GB, free: 4.852 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3519, allocations: 0 / 0.5914 GB, free: 4.852 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.3522, allocations: 135.8 kB / 0.5915 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.3528, allocations: 76.42 kB / 0.5916 GB, free: 4.652 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006834/0.3596, allocations: 4.866 MB / 0.5964 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006845/0.3603, allocations: 0.9563 MB / 0.5973 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.3605, allocations: 60.48 kB / 0.5974 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.3608, allocations: 299.3 kB / 0.5976 GB, free: 14.17 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3609, allocations: 0 / 0.5976 GB, free: 14.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.3976, allocations: 9.898 MB / 0.6073 GB, free: 4.441 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/13.77, allocations: 10.98 kB / 0.6073 GB, free: 4.434 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.853511716995854]