Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009398/0.0009398, allocations: 175.9 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007448/0.0007448, allocations: 86.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3068/0.3068, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004491, allocations: 12 kB / 432 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1257, allocations: 58.86 MB / 490.8 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005255/0.131, allocations: 4.972 MB / 495.8 MB, free: 5.656 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003617/0.1346, allocations: 2.164 MB / 498 MB, free: 3.484 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.1357, allocations: 35.75 kB / 498 MB, free: 3.449 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005496/0.1362, allocations: 158.7 kB / 498.1 MB, free: 3.293 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005692/0.1368, allocations: 150.8 kB / 498.3 MB, free: 3.145 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.1378, allocations: 299.3 kB / 498.6 MB, free: 2.852 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001216/0.139, allocations: 1.025 MB / 499.6 MB, free: 1.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008585/0.1399, allocations: 0.5478 MB / 0.4884 GB, free: 1.254 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003837/0.1403, allocations: 262.8 kB / 0.4887 GB, free: 0.9961 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.1407, allocations: 282.4 kB / 0.489 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.768e-05/0.1408, allocations: 32 kB / 0.489 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.141, allocations: 83.97 kB / 0.4891 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.1411, allocations: 135.4 kB / 0.4892 GB, free: 484 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003821/0.1415, allocations: 395.6 kB / 0.4896 GB, free: 80 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.17/0.3115, allocations: 0.9185 MB / 0.4905 GB, free: 36.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3116, allocations: 2.953 kB / 0.4905 GB, free: 36.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3116, allocations: 0 / 0.4905 GB, free: 36.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.3116, allocations: 0 / 0.4905 GB, free: 36.61 MB / 378.7 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.001275/0.3129, allocations: 0.954 MB / 0.4914 GB, free: 36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3129, allocations: 10.59 kB / 0.4914 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.3131, allocations: 110.1 kB / 0.4915 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007563/0.3138, allocations: 0.5586 MB / 0.4921 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.473e-05/0.3139, allocations: 69.62 kB / 0.4921 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.314, allocations: 95.11 kB / 0.4922 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.3156, allocations: 0.8864 MB / 0.4931 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.3156, allocations: 4.172 kB / 0.4931 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.3157, allocations: 40.31 kB / 0.4931 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.3157, allocations: 23.75 kB / 0.4932 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.3168, allocations: 0.5217 MB / 0.4937 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003274/0.3201, allocations: 3.654 MB / 0.4972 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005238/0.3206, allocations: 223.7 kB / 0.4974 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.3208, allocations: 103.7 kB / 0.4975 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001743/0.321, allocations: 253.1 kB / 0.4978 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.321, allocations: 38.95 kB / 0.4978 GB, free: 33.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.886e-06/0.321, allocations: 1.5 kB / 0.4978 GB, free: 33.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002293/0.3233, allocations: 1.303 MB / 0.4991 GB, free: 32.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.3233, allocations: 56.72 kB / 0.4991 GB, free: 32.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.3237, allocations: 397.1 kB / 0.4995 GB, free: 32.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.3238, allocations: 34.17 kB / 0.4996 GB, free: 32.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.324, allocations: 475 kB / 0.5 GB, free: 31.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.299e-05/0.324, allocations: 134.2 kB / 0.5001 GB, free: 31.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.662e-05/0.324, allocations: 7.062 kB / 0.5001 GB, free: 31.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.059e-05/0.3241, allocations: 365.4 kB / 0.5005 GB, free: 31.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.3243, allocations: 113.6 kB / 0.5006 GB, free: 31.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.3246, allocations: 311.6 kB / 0.5009 GB, free: 31.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000471/0.3251, allocations: 453.2 kB / 0.5013 GB, free: 31.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3251, allocations: 1.656 kB / 0.5013 GB, free: 31.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007658/0.3258, allocations: 0.5157 MB / 0.5018 GB, free: 30.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3259, allocations: 7.75 kB / 0.5018 GB, free: 30.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3259, allocations: 7.219 kB / 0.5019 GB, free: 30.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001685/0.3261, allocations: 39.03 kB / 0.5019 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.3264, allocations: 126.5 kB / 0.502 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002487/0.3267, allocations: 0.5632 MB / 0.5026 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.3269, allocations: 22.31 kB / 0.5026 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/0.3269, allocations: 23.75 kB / 0.5026 GB, free: 30.44 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.3272, allocations: 229 kB / 0.5028 GB, free: 30.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.38e-05/0.3272, allocations: 52.42 kB / 0.5029 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005015/0.3277, allocations: 334.2 kB / 0.5032 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3278, allocations: 5.562 kB / 0.5032 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3278, allocations: 0 / 0.5032 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3278, allocations: 3.141 kB / 0.5032 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.3289, allocations: 1.065 MB / 0.5042 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3289, allocations: 5.062 kB / 0.5042 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003072/0.3292, allocations: 82.39 kB / 0.5043 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001045/0.3294, allocations: 31.48 kB / 0.5044 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.3294, allocations: 11.94 kB / 0.5044 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001909/0.3296, allocations: 0.5502 MB / 0.5049 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3296, allocations: 0 / 0.5049 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005949/0.3302, allocations: 0.5612 MB / 0.5054 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.142e-05/0.3303, allocations: 120.5 kB / 0.5056 GB, free: 29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.516e-05/0.3303, allocations: 12.03 kB / 0.5056 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.3305, allocations: 9.469 kB / 0.5056 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.3305, allocations: 24.05 kB / 0.5056 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.3306, allocations: 15.45 kB / 0.5056 GB, free: 28.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002039/0.3308, allocations: 270.9 kB / 0.5059 GB, free: 28.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3308, allocations: 2.562 kB / 0.5059 GB, free: 28.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004637/0.3312, allocations: 121.8 kB / 0.506 GB, free: 28.9 MB / 378.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.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001335/0.3314, allocations: 123.5 kB / 0.5061 GB, free: 28.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005243/0.3319, allocations: 338.6 kB / 0.5064 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3319, allocations: 1.641 kB / 0.5064 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.3321, allocations: 145.8 kB / 0.5066 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.3327, allocations: 66.97 kB / 0.5066 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3349, allocations: 2.112 MB / 0.5087 GB, free: 27.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.3353, allocations: 0.9566 MB / 0.5096 GB, free: 26.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.972e-05/0.3354, allocations: 48.23 kB / 0.5097 GB, free: 26.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3354, allocations: 0 / 0.5097 GB, free: 26.72 MB / 378.7 MB Notification: Performance of Templates: time 0.0108/0.3462, allocations: 10.98 MB / 0.5204 GB, free: 25.7 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches