Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.00159/0.00159, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001981/0.001981, allocations: 214.8 kB / 24.52 MB, free: 3.91 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.566/1.566, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.236/0.236, allocations: 46.95 MB / 361.6 MB, free: 3.918 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.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002529/0.002529, allocations: 75.89 kB / 0.4969 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3162, allocations: 66.07 MB / 0.5614 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004347/0.3205, allocations: 2.83 MB / 0.5642 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.3226, allocations: 1.013 MB / 0.5652 GB, free: 200 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.3228, allocations: 15.88 kB / 0.5652 GB, free: 184 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.323, allocations: 55.39 kB / 0.5652 GB, free: 128 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.3234, allocations: 135 kB / 0.5654 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.324, allocations: 167.6 kB / 0.5655 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005562/0.3245, allocations: 453.7 kB / 0.5659 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.3248, allocations: 89.75 kB / 0.566 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.325, allocations: 167.4 kB / 0.5662 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.3252, allocations: 183.2 kB / 0.5664 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.3253, allocations: 28 kB / 0.5664 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.3254, allocations: 51.98 kB / 0.5664 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.3255, allocations: 75.77 kB / 0.5665 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.3257, allocations: 163.2 kB / 0.5667 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.3262, allocations: 442.2 kB / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3262, allocations: 0 / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3262, allocations: 0 / 0.5671 GB, free: 14.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.3262, allocations: 0 / 0.5671 GB, free: 14.2 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001088/0.3273, allocations: 0.6027 MB / 0.5677 GB, free: 13.57 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3274, allocations: 11.97 kB / 0.5677 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.399e-05/0.3274, allocations: 9.188 kB / 0.5677 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.886e-05/0.3275, allocations: 70.72 kB / 0.5678 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.3278, allocations: 64.64 kB / 0.5678 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.3282, allocations: 237.6 kB / 0.5681 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.358e-05/0.3282, allocations: 33.31 kB / 0.5681 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.265e-05/0.3283, allocations: 47.89 kB / 0.5681 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000633/0.3289, allocations: 359.6 kB / 0.5685 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.329, allocations: 4 kB / 0.5685 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.329, allocations: 16 kB / 0.5685 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.329, allocations: 11.94 kB / 0.5685 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000482/0.3295, allocations: 219.8 kB / 0.5687 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.3319, allocations: 1.448 MB / 0.5701 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.3326, allocations: 303.7 kB / 0.5704 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.3327, allocations: 93.06 kB / 0.5705 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.3328, allocations: 4 kB / 0.5705 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.3328, allocations: 38.56 kB / 0.5706 GB, free: 10.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.3328, allocations: 4 kB / 0.5706 GB, free: 10.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007415/0.3335, allocations: 273.2 kB / 0.5708 GB, free: 10.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.3337, allocations: 183.9 kB / 0.571 GB, free: 9.879 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.3339, allocations: 237.9 kB / 0.5712 GB, free: 9.641 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.3339, allocations: 37.64 kB / 0.5713 GB, free: 9.598 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.3341, allocations: 216.3 kB / 0.5715 GB, free: 9.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/0.3342, allocations: 115.1 kB / 0.5716 GB, free: 9.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.3343, allocations: 70.09 kB / 0.5716 GB, free: 9.191 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3345, allocations: 346.7 kB / 0.572 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.3347, allocations: 84.97 kB / 0.572 GB, free: 8.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.335, allocations: 251.1 kB / 0.5723 GB, free: 8.445 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000541/0.3355, allocations: 357.1 kB / 0.5726 GB, free: 8.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3355, allocations: 4 kB / 0.5726 GB, free: 8.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006781/0.3362, allocations: 385.6 kB / 0.573 GB, free: 7.633 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3362, allocations: 12.12 kB / 0.573 GB, free: 7.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3362, allocations: 11.94 kB / 0.573 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3363, allocations: 8.094 kB / 0.573 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003893/0.3366, allocations: 111.8 kB / 0.5731 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3367, allocations: 8 kB / 0.5731 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.3369, allocations: 39.72 kB / 0.5732 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.3369, allocations: 20 kB / 0.5732 GB, free: 7.426 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001783/0.3371, allocations: 165.6 kB / 0.5734 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.3373, allocations: 28.56 kB / 0.5734 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.3375, allocations: 99.33 kB / 0.5735 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3375, allocations: 4 kB / 0.5735 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.3375, allocations: 7.984 kB / 0.5735 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3375, allocations: 0 / 0.5735 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.3382, allocations: 296.4 kB / 0.5738 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3382, allocations: 4 kB / 0.5738 GB, free: 6.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.3386, allocations: 83.89 kB / 0.5739 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.3386, allocations: 3.984 kB / 0.5739 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.3387, allocations: 11.98 kB / 0.5739 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.066e-05/0.3387, allocations: 4 kB / 0.5739 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3387, allocations: 4 kB / 0.5739 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008396/0.3395, allocations: 0.7741 MB / 0.5746 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.978e-05/0.3396, allocations: 27.8 kB / 0.5747 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.3396, allocations: 8 kB / 0.5747 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.3399, allocations: 8 kB / 0.5747 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.34, allocations: 27.89 kB / 0.5747 GB, free: 5.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.34, allocations: 8 kB / 0.5747 GB, free: 5.793 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.3402, allocations: 169.2 kB / 0.5749 GB, free: 5.625 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3402, allocations: 0 / 0.5749 GB, free: 5.625 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006319/0.3408, allocations: 99.78 kB / 0.575 GB, free: 5.527 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.001112/0.3419, allocations: 1.307 MB / 0.5762 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005066/0.3424, allocations: 224.8 kB / 0.5765 GB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3424, allocations: 384 / 0.5765 GB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.3426, allocations: 96.14 kB / 0.5766 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009891/0.3436, allocations: 78.69 kB / 0.5766 GB, free: 3.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005401/0.349, allocations: 4.093 MB / 0.5806 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.3493, allocations: 190.5 kB / 0.5808 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001639/0.3494, allocations: 30.97 kB / 0.5808 GB, free: 15.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3496, allocations: 111.4 kB / 0.5809 GB, free: 15.11 MB / 430.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3496, allocations: 0 / 0.5809 GB, free: 15.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.3801, allocations: 6.937 MB / 0.5877 GB, free: 8.352 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.29, allocations: 14.48 kB / 0.5877 GB, free: 8.34 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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: 15.730822358978912]