Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001501/0.001501, allocations: 126.2 kB / 17.84 MB, free: 5.223 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.001768/0.001768, allocations: 203.8 kB / 20.79 MB, free: 2.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 207.6 MB / 231.2 MB, free: 4.102 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3376/0.3376, allocations: 44.23 MB / 327.3 MB, free: 6.66 MB / 254.1 MB " [Timeout remaining time 180] 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 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 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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 71.89 kB / 462.9 MB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2732, allocations: 61 MB / 0.5116 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00292/0.2761, allocations: 1.915 MB / 0.5135 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000819/0.277, allocations: 0.5391 MB / 0.514 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.2771, allocations: 2.906 kB / 0.514 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.2772, allocations: 17.36 kB / 0.514 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.74e-05/0.2773, allocations: 41.45 kB / 0.5141 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.2775, allocations: 45 kB / 0.5141 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.2777, allocations: 153.5 kB / 0.5143 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.2779, allocations: 41.31 kB / 0.5143 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.278, allocations: 62.45 kB / 0.5144 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.2781, allocations: 62.92 kB / 0.5144 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.2781, allocations: 16.5 kB / 0.5144 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.499e-05/0.2781, allocations: 10.59 kB / 0.5145 GB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.2782, allocations: 33.2 kB / 0.5145 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.461e-05/0.2782, allocations: 69.06 kB / 0.5145 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.2785, allocations: 149.3 kB / 0.5147 GB, free: 10.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2785, allocations: 0 / 0.5147 GB, free: 10.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.2785, allocations: 1.156 kB / 0.5147 GB, free: 10.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2785, allocations: 0 / 0.5147 GB, free: 10.83 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004987/0.279, allocations: 432.9 kB / 0.5151 GB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.279, allocations: 13.23 kB / 0.5151 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.164e-05/0.279, allocations: 8.188 kB / 0.5151 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.2791, allocations: 48.08 kB / 0.5152 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.2791, allocations: 19.62 kB / 0.5152 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.2793, allocations: 208 kB / 0.5154 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.2793, allocations: 14.77 kB / 0.5154 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.2794, allocations: 20.89 kB / 0.5154 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.2796, allocations: 130.3 kB / 0.5155 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.2796, allocations: 0.9688 kB / 0.5155 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.2797, allocations: 5.594 kB / 0.5156 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2797, allocations: 3.25 kB / 0.5156 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.2798, allocations: 84.61 kB / 0.5156 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.2804, allocations: 461.2 kB / 0.5161 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.2806, allocations: 111.2 kB / 0.5162 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.999e-05/0.2807, allocations: 51.94 kB / 0.5162 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.2808, allocations: 7.984 kB / 0.5162 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.2808, allocations: 36.33 kB / 0.5163 GB, free: 9.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.2808, allocations: 0 / 0.5163 GB, free: 9.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001315/0.2821, allocations: 0.8143 MB / 0.5171 GB, free: 8.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.2821, allocations: 58.16 kB / 0.5171 GB, free: 8.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.2822, allocations: 134.9 kB / 0.5173 GB, free: 8.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.2822, allocations: 27.08 kB / 0.5173 GB, free: 8.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.2823, allocations: 113.9 kB / 0.5174 GB, free: 8.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.2823, allocations: 70.25 kB / 0.5175 GB, free: 8.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-05/0.2824, allocations: 34.09 kB / 0.5175 GB, free: 8.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.2824, allocations: 325.6 kB / 0.5178 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.212e-05/0.2825, allocations: 47.34 kB / 0.5178 GB, free: 7.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.942e-05/0.2826, allocations: 77.59 kB / 0.5179 GB, free: 7.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.2828, allocations: 135.7 kB / 0.518 GB, free: 7.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2828, allocations: 5.375 kB / 0.5181 GB, free: 7.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003342/0.2831, allocations: 199.6 kB / 0.5182 GB, free: 7.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2831, allocations: 5.5 kB / 0.5182 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.2831, allocations: 1.375 kB / 0.5182 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/0.2833, allocations: 42.83 kB / 0.5183 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.2835, allocations: 38.09 kB / 0.5183 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.2846, allocations: 1.747 MB / 0.52 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.458e-05/0.2847, allocations: 4 kB / 0.52 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.2847, allocations: 12 kB / 0.52 GB, free: 5.855 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.403e-05/0.2847, allocations: 121.8 kB / 0.5202 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.2848, allocations: 15.89 kB / 0.5202 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.704e-05/0.2848, allocations: 25.12 kB / 0.5202 GB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2848, allocations: 3.984 kB / 0.5202 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2848, allocations: 4.062 kB / 0.5202 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2848, allocations: 0 / 0.5202 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.2854, allocations: 0.5583 MB / 0.5208 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2854, allocations: 0 / 0.5208 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.2856, allocations: 31.98 kB / 0.5208 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.78e-05/0.2857, allocations: 40.86 kB / 0.5208 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2857, allocations: 0 / 0.5208 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007365/0.2864, allocations: 1.485 MB / 0.5223 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2864, allocations: 3.984 kB / 0.5223 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.2868, allocations: 343.5 kB / 0.5226 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.764e-05/0.2868, allocations: 93.2 kB / 0.5227 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.2869, allocations: 4 kB / 0.5227 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.2869, allocations: 7.938 kB / 0.5227 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.287, allocations: 15.98 kB / 0.5227 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.287, allocations: 4 kB / 0.5227 GB, free: 2.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.672e-05/0.287, allocations: 111.2 kB / 0.5228 GB, free: 2.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.287, allocations: 0 / 0.5228 GB, free: 2.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.2874, allocations: 40 kB / 0.5229 GB, free: 2.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005841/0.2879, allocations: 0.8793 MB / 0.5237 GB, free: 1.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.2884, allocations: 266.8 kB / 0.524 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2884, allocations: 0 / 0.524 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.2886, allocations: 178.6 kB / 0.5242 GB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.2889, allocations: 24.33 kB / 0.5242 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.2912, allocations: 2.076 MB / 0.5262 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.2915, allocations: 0.7166 MB / 0.5269 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.479e-05/0.2916, allocations: 17.42 kB / 0.5269 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.2917, allocations: 39.42 kB / 0.527 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2917, allocations: 0 / 0.527 GB, free: 14.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/0.3175, allocations: 3.483 MB / 0.5304 GB, free: 10.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.5, allocations: 11.95 kB / 0.5304 GB, free: 10.83 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 14.506937328958884]