Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_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_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001455/0.001455, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001615, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.09 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 77.22 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1188, allocations: 62.44 MB / 479.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003551/0.1224, allocations: 1.98 MB / 481.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1235, allocations: 0.5532 MB / 482.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.1237, allocations: 4 kB / 482.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001503/0.1239, allocations: 11.86 kB / 482.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.1241, allocations: 35.75 kB / 482.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.1243, allocations: 43.89 kB / 482.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.1245, allocations: 139.3 kB / 482.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1247, allocations: 60.62 kB / 482.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.1249, allocations: 55.8 kB / 482.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.125, allocations: 67.64 kB / 482.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.125, allocations: 8 kB / 482.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.847e-05/0.1251, allocations: 12 kB / 482.9 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.1251, allocations: 27.89 kB / 482.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.2e-05/0.1252, allocations: 67.67 kB / 483 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.1254, allocations: 116 kB / 483.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1254, allocations: 3.938 kB / 483.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1254, allocations: 0 / 483.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.1254, allocations: 0 / 483.1 MB, free: 2.551 MB / 350.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.0006207/0.126, allocations: 431.1 kB / 483.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1261, allocations: 8.875 kB / 483.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.1262, allocations: 28.73 kB / 483.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.1265, allocations: 212 kB / 483.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.1265, allocations: 8.375 kB / 483.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.1265, allocations: 12.38 kB / 483.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.1268, allocations: 138.2 kB / 483.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1269, allocations: 3.938 kB / 483.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.1269, allocations: 4 kB / 483.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1269, allocations: 4 kB / 483.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.1271, allocations: 79.95 kB / 484 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.1278, allocations: 468.1 kB / 484.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.1281, allocations: 126.4 kB / 484.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.1282, allocations: 68.7 kB / 484.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1282, allocations: 3.984 kB / 484.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1283, allocations: 34.56 kB / 484.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.1283, allocations: 0 / 484.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001504/0.1298, allocations: 0.8022 MB / 485.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.1298, allocations: 51.41 kB / 485.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.13, allocations: 144.2 kB / 485.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.13, allocations: 25.7 kB / 485.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.793e-05/0.1301, allocations: 116.3 kB / 485.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.1301, allocations: 67 kB / 485.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/0.1302, allocations: 41.7 kB / 485.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1303, allocations: 318.8 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.673e-05/0.1304, allocations: 43.98 kB / 486.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1305, allocations: 82.53 kB / 486.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.1308, allocations: 143.3 kB / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1308, allocations: 0 / 486.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003863/0.1312, allocations: 202.2 kB / 486.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1312, allocations: 7.938 kB / 486.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1312, allocations: 4 kB / 486.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.1314, allocations: 40.83 kB / 486.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.1315, allocations: 39.95 kB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.1329, allocations: 1.554 MB / 488.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.031e-05/0.133, allocations: 16.02 kB / 488.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.1331, allocations: 7.938 kB / 488.4 MB, free: 12.81 MB / 366.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 0.0001058/0.1332, allocations: 125.8 kB / 488.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.1332, allocations: 11.94 kB / 488.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.732e-05/0.1333, allocations: 17.19 kB / 488.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.1333, allocations: 7.938 kB / 488.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1333, allocations: 4.062 kB / 488.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1333, allocations: 3.984 kB / 488.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007735/0.1341, allocations: 0.5621 MB / 489.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1341, allocations: 4.031 kB / 489.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.1343, allocations: 35.92 kB / 489.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001129/0.1344, allocations: 32.83 kB / 489.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1344, allocations: 4 kB / 489.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.1355, allocations: 1.363 MB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1355, allocations: 7.922 kB / 490.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.136, allocations: 352.9 kB / 490.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.1361, allocations: 88.95 kB / 491 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.1361, allocations: 4 kB / 491 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.71e-05/0.1362, allocations: 7.984 kB / 491 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.1362, allocations: 16.12 kB / 491 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.1363, allocations: 4 kB / 491 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.918e-05/0.1363, allocations: 109.5 kB / 491.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 491.1 MB, free: 9.816 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003458/0.1367, allocations: 44 kB / 491.2 MB, free: 9.773 MB / 366.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.0001224/0.1368, allocations: 103.2 kB / 491.3 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.1374, allocations: 254.6 kB / 491.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1374, allocations: 0 / 491.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.1377, allocations: 200.7 kB / 491.7 MB, free: 9.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.1381, allocations: 24.25 kB / 491.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009432/0.139, allocations: 0.5136 MB / 492.2 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1394, allocations: 0.7207 MB / 493 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.57e-05/0.1394, allocations: 15.44 kB / 493 MB, free: 7.855 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1394, allocations: 0 / 493 MB, free: 7.855 MB / 366.1 MB Notification: Performance of Templates: time 0.004586/0.144, allocations: 2.435 MB / 495.4 MB, free: 5.418 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches