Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 194.9 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007355/0.0007356, allocations: 102 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3223/0.3223, allocations: 44.82 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002691, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.304, allocations: 62.95 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1222/0.4263, allocations: 88.4 MB / 0.6028 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.4265, allocations: 71.97 kB / 0.6029 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006786/0.4333, allocations: 2.685 MB / 0.6055 GB, free: 14.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4334, allocations: 0 / 0.6055 GB, free: 14.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.4334, allocations: 0 / 0.6055 GB, free: 14.22 MB / 426.7 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.0004326/0.4338, allocations: 419 kB / 0.6059 GB, free: 13.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.4339, allocations: 12.88 kB / 0.6059 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.434, allocations: 28.73 kB / 0.6059 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.4342, allocations: 204.1 kB / 0.6061 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.4342, allocations: 10.23 kB / 0.6061 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.4342, allocations: 12.38 kB / 0.6061 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.4345, allocations: 132 kB / 0.6063 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.4345, allocations: 192 / 0.6063 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.4345, allocations: 15.94 kB / 0.6063 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.4346, allocations: 0 / 0.6063 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.4347, allocations: 87.94 kB / 0.6064 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.4354, allocations: 472.1 kB / 0.6068 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.4356, allocations: 118.5 kB / 0.6069 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.4357, allocations: 56.84 kB / 0.607 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.4357, allocations: 0 / 0.607 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.4358, allocations: 46.5 kB / 0.607 GB, free: 12.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.002e-06/0.4358, allocations: 0 / 0.607 GB, free: 12.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.001332/0.4371, allocations: 0.8237 MB / 0.6078 GB, free: 11.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.4371, allocations: 55.39 kB / 0.6079 GB, free: 11.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.4373, allocations: 142.1 kB / 0.608 GB, free: 11.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.4373, allocations: 29.7 kB / 0.608 GB, free: 11.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.4373, allocations: 112.3 kB / 0.6082 GB, free: 11.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.4374, allocations: 59.11 kB / 0.6082 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.4374, allocations: 8 kB / 0.6082 GB, free: 11.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.4375, allocations: 322.8 kB / 0.6085 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.513e-05/0.4376, allocations: 47.91 kB / 0.6086 GB, free: 10.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.4377, allocations: 79.41 kB / 0.6086 GB, free: 10.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.438, allocations: 139.3 kB / 0.6088 GB, free: 10.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-07/0.438, allocations: 0 / 0.6088 GB, free: 10.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003508/0.4383, allocations: 210.2 kB / 0.609 GB, free: 10.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4383, allocations: 8 kB / 0.609 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.4384, allocations: 8.031 kB / 0.609 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.4385, allocations: 40.83 kB / 0.609 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.4387, allocations: 43.8 kB / 0.6091 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.4399, allocations: 1.55 MB / 0.6106 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.44, allocations: 8.031 kB / 0.6106 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.44, allocations: 4 kB / 0.6106 GB, free: 8.504 MB / 426.7 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 (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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.4401, allocations: 133.8 kB / 0.6107 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.4402, allocations: 19.84 kB / 0.6108 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.651e-05/0.4402, allocations: 21.17 kB / 0.6108 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4402, allocations: 4 kB / 0.6108 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.4402, allocations: 0 / 0.6108 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.4403, allocations: 0 / 0.6108 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007131/0.441, allocations: 0.5652 MB / 0.6113 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.441, allocations: 4 kB / 0.6113 GB, free: 7.691 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.4412, allocations: 35.98 kB / 0.6114 GB, free: 7.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.475e-05/0.4413, allocations: 32.83 kB / 0.6114 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.4413, allocations: 0 / 0.6114 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009065/0.4422, allocations: 1.374 MB / 0.6127 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4422, allocations: 0 / 0.6127 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.4427, allocations: 358.1 kB / 0.6131 GB, free: 5.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.34e-05/0.4427, allocations: 92.86 kB / 0.6132 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.4428, allocations: 7.984 kB / 0.6132 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.005e-05/0.4429, allocations: 4 kB / 0.6132 GB, free: 5.621 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.4429, allocations: 20.05 kB / 0.6132 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.4429, allocations: 4 kB / 0.6132 GB, free: 5.598 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.21e-05/0.443, allocations: 106.3 kB / 0.6133 GB, free: 5.496 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.443, allocations: 4 kB / 0.6133 GB, free: 5.492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003054/0.4433, allocations: 40 kB / 0.6133 GB, free: 5.453 MB / 426.7 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 (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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001212/0.4434, allocations: 103.2 kB / 0.6134 GB, free: 5.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004432/0.4439, allocations: 266.4 kB / 0.6137 GB, free: 5.066 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4439, allocations: 0 / 0.6137 GB, free: 5.066 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.4441, allocations: 198.5 kB / 0.6139 GB, free: 4.859 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.4445, allocations: 28.05 kB / 0.6139 GB, free: 4.832 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007447/0.4452, allocations: 0.539 MB / 0.6144 GB, free: 4.258 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.4455, allocations: 0.7207 MB / 0.6151 GB, free: 3.504 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.4456, allocations: 19.44 kB / 0.6152 GB, free: 3.488 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4456, allocations: 0 / 0.6152 GB, free: 3.488 MB / 426.7 MB Notification: Performance of Templates: time 0.003747/0.4493, allocations: 2.399 MB / 0.6175 GB, free: 1.094 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches