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.0008246/0.0008246, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009095/0.0009095, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.133/1.133, allocations: 227.7 MB / 246.8 MB, free: 9.723 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1591/0.1591, allocations: 46.18 MB / 345.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002005/0.0002006, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08485, allocations: 63.56 MB / 483.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001662/0.08654, allocations: 1.641 MB / 484.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007036/0.08726, allocations: 0.5417 MB / 485.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.04e-05/0.08733, allocations: 4 kB / 485.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.7e-05/0.08741, allocations: 11.86 kB / 485.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.08749, allocations: 35.69 kB / 485.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.08765, allocations: 39.95 kB / 485.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.0878, allocations: 151.3 kB / 485.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.08792, allocations: 38 kB / 485.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.08804, allocations: 63.72 kB / 485.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.628e-05/0.08813, allocations: 51.7 kB / 485.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.08815, allocations: 8 kB / 485.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.309e-05/0.0882, allocations: 16 kB / 485.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.485e-05/0.08823, allocations: 19.92 kB / 485.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.223e-05/0.0883, allocations: 85.36 kB / 485.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.08846, allocations: 147.7 kB / 485.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.08847, allocations: 0 / 485.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08848, allocations: 3.938 kB / 485.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.08849, allocations: 0 / 485.9 MB, free: 1.305 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.0004171/0.08891, allocations: 415.1 kB / 486.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.08895, allocations: 16.88 kB / 486.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.08908, allocations: 32.67 kB / 486.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.08925, allocations: 200.1 kB / 486.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.08927, allocations: 8.375 kB / 486.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.0893, allocations: 12.38 kB / 486.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.08952, allocations: 142.2 kB / 486.7 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.08954, allocations: 0 / 486.7 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.08956, allocations: 12 kB / 486.7 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.08957, allocations: 4 kB / 486.7 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.08975, allocations: 83.95 kB / 486.8 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.09032, allocations: 476 kB / 487.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.09052, allocations: 126.4 kB / 487.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.09063, allocations: 56.84 kB / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.09065, allocations: 4 kB / 487.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.09068, allocations: 42.48 kB / 487.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.09068, allocations: 0 / 487.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001216/0.0919, allocations: 0.8171 MB / 488.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.09194, allocations: 55.41 kB / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.753e-05/0.09204, allocations: 136.1 kB / 488.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.09207, allocations: 33.7 kB / 488.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.09213, allocations: 116.3 kB / 488.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.09217, allocations: 63.09 kB / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.0922, allocations: 17.72 kB / 488.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.09229, allocations: 326.8 kB / 489.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.861e-05/0.0924, allocations: 43.97 kB / 489.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.09251, allocations: 83.28 kB / 489.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.09271, allocations: 135.4 kB / 489.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.09272, allocations: 3.938 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000327/0.09305, allocations: 214.2 kB / 489.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.09307, allocations: 8 kB / 489.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.09308, allocations: 3.984 kB / 489.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.09322, allocations: 44.81 kB / 489.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.09337, allocations: 31.98 kB / 489.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.09452, allocations: 1.562 MB / 491.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.867e-05/0.0946, allocations: 8.031 kB / 491.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.09461, allocations: 4 kB / 491.2 MB, free: 11.56 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 8.822e-05/0.09471, allocations: 141.8 kB / 491.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/0.09474, allocations: 11.91 kB / 491.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.09478, allocations: 17.19 kB / 491.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.09479, allocations: 4 kB / 491.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.0948, allocations: 0 / 491.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.0948, allocations: 0 / 491.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006312/0.09544, allocations: 0.5621 MB / 491.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.09545, allocations: 0 / 491.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.0956, allocations: 39.91 kB / 492 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.773e-05/0.09569, allocations: 36.81 kB / 492 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.09571, allocations: 4 kB / 492 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008066/0.09652, allocations: 1.39 MB / 493.4 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.09654, allocations: 7.875 kB / 493.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000404/0.09695, allocations: 348 kB / 493.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.09699, allocations: 88.95 kB / 493.8 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.09702, allocations: 4 kB / 493.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-05/0.09711, allocations: 4 kB / 493.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.09715, allocations: 23.91 kB / 493.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.09716, allocations: 4 kB / 493.9 MB, free: 8.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.435e-05/0.09722, allocations: 107.3 kB / 494 MB, free: 8.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09722, allocations: 0 / 494 MB, free: 8.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.09751, allocations: 40 kB / 494 MB, free: 8.496 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 7.802e-05/0.09759, allocations: 99.31 kB / 494.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003854/0.09798, allocations: 262.5 kB / 494.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.09799, allocations: 0 / 494.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002144/0.09821, allocations: 198.7 kB / 494.5 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.09851, allocations: 20.27 kB / 494.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006198/0.09914, allocations: 0.5332 MB / 495.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.09936, allocations: 0.7207 MB / 495.8 MB, free: 6.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.19e-05/0.09941, allocations: 13.42 kB / 495.8 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.09944, allocations: 11.44 kB / 495.8 MB, free: 6.559 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.09945, allocations: 0 / 495.8 MB, free: 6.559 MB / 366.1 MB Notification: Performance of Templates: time 0.003365/0.1028, allocations: 1.51 MB / 497.4 MB, free: 5.059 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches