Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 101.1 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1914/0.1914, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 65.75 kB / 382.8 MB, free: 56.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06638/0.06777, allocations: 57.79 MB / 440.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.00262/0.07041, allocations: 2.609 MB / 443.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000679/0.07111, allocations: 0.6825 MB / 443.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.07122, allocations: 11.94 kB / 443.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.07135, allocations: 39.58 kB / 444 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.07147, allocations: 87.2 kB / 444 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.07166, allocations: 87.81 kB / 444.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.07186, allocations: 326.6 kB / 444.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.072, allocations: 85.88 kB / 444.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.07212, allocations: 123.6 kB / 444.6 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.07224, allocations: 131.3 kB / 444.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.07228, allocations: 24 kB / 444.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.551e-05/0.07232, allocations: 20 kB / 444.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.415e-05/0.07236, allocations: 63.75 kB / 444.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.963e-05/0.07244, allocations: 139.3 kB / 445 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.07262, allocations: 298.8 kB / 445.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.07263, allocations: 0 / 445.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.07264, allocations: 4 kB / 445.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.07265, allocations: 0 / 445.3 MB, free: 2.09 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000627/0.07328, allocations: 0.5884 MB / 445.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.07332, allocations: 11.89 kB / 445.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.07336, allocations: 58.73 kB / 446 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.21e-05/0.07341, allocations: 32.56 kB / 446 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.0736, allocations: 263.7 kB / 446.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.07362, allocations: 16.94 kB / 446.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.07366, allocations: 32.28 kB / 446.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.07399, allocations: 278.1 kB / 446.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.07402, allocations: 11.98 kB / 446.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.07404, allocations: 8 kB / 446.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.07405, allocations: 8 kB / 446.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.07437, allocations: 179.8 kB / 446.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.07564, allocations: 1.314 MB / 448.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.076, allocations: 254.3 kB / 448.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.07619, allocations: 99.39 kB / 448.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.07622, allocations: 8.125 kB / 448.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.07624, allocations: 38.56 kB / 448.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.595e-06/0.07625, allocations: 0 / 448.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002141/0.0784, allocations: 1.565 MB / 450 MB, free: 12.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/0.07846, allocations: 140.5 kB / 450.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.07863, allocations: 224.9 kB / 450.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.07865, allocations: 33.7 kB / 450.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.084e-05/0.07874, allocations: 168.3 kB / 450.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.07881, allocations: 122.3 kB / 450.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.763e-05/0.0789, allocations: 66.14 kB / 450.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.07899, allocations: 342.8 kB / 451.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.07922, allocations: 100.8 kB / 451.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.07951, allocations: 237.4 kB / 451.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005358/0.08006, allocations: 377 kB / 451.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.08007, allocations: 0 / 451.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000653/0.08073, allocations: 396.6 kB / 452.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.08075, allocations: 12.34 kB / 452.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.08076, allocations: 8 kB / 452.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.08078, allocations: 8 kB / 452.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.08112, allocations: 95.88 kB / 452.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.08114, allocations: 8.719 kB / 452.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.08134, allocations: 31.97 kB / 452.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.08136, allocations: 16 kB / 452.4 MB, free: 10.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.08148, allocations: 165.5 kB / 452.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.116e-05/0.08158, allocations: 27.62 kB / 452.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.962e-05/0.08165, allocations: 37.7 kB / 452.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.08165, allocations: 4 kB / 452.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.08166, allocations: 192 / 452.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.08167, allocations: 7.984 kB / 452.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.08288, allocations: 0.9816 MB / 453.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.08289, allocations: 4.438 kB / 453.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.08322, allocations: 71.89 kB / 453.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.08323, allocations: 4 kB / 453.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.08326, allocations: 23.92 kB / 453.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.08327, allocations: 3.938 kB / 453.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.08328, allocations: 4 kB / 453.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.0841, allocations: 0.7324 MB / 454.4 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.051e-05/0.08416, allocations: 96.83 kB / 454.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.0842, allocations: 12 kB / 454.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.08447, allocations: 15.98 kB / 454.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.08453, allocations: 31.95 kB / 454.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.08455, allocations: 8 kB / 454.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.08467, allocations: 156.5 kB / 454.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08467, allocations: 4 kB / 454.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.08511, allocations: 68 kB / 454.8 MB, free: 7.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/0.08615, allocations: 1.27 MB / 456.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005484/0.08671, allocations: 300.4 kB / 456.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.08672, allocations: 0 / 456.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002437/0.08697, allocations: 132.7 kB / 456.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.08756, allocations: 40.5 kB / 456.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.09112, allocations: 3.479 MB / 460 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.09139, allocations: 0.772 MB / 460.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.09152, allocations: 30.95 kB / 460.8 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.09165, allocations: 95.41 kB / 460.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09165, allocations: 0 / 460.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7884/0.88, allocations: 5.22 MB / 466.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/12.17, allocations: 11.92 kB / 466.2 MB, free: 12.15 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches