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.001104/0.001104, allocations: 118.3 kB / 18.46 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 206.7 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.692/1.692, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4096/0.4096, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 75.88 kB / 482 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3482, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003181/0.3514, allocations: 1.921 MB / 0.5335 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009754/0.3524, allocations: 0.5576 MB / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.724e-05/0.3525, allocations: 7.062 kB / 0.5341 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3526, allocations: 22.27 kB / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.391e-05/0.3527, allocations: 40.52 kB / 0.5341 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.353, allocations: 50.91 kB / 0.5342 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.3532, allocations: 147.8 kB / 0.5343 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3534, allocations: 68.22 kB / 0.5344 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.3535, allocations: 60.33 kB / 0.5345 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.3537, allocations: 65.41 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.3537, allocations: 12.56 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.742e-05/0.3538, allocations: 17.77 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.3538, allocations: 23.95 kB / 0.5346 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.054e-05/0.3539, allocations: 74.17 kB / 0.5346 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.3541, allocations: 153.2 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3541, allocations: 1.375 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3541, allocations: 4 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3542, allocations: 0 / 0.5348 GB, free: 11.18 MB / 398.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.0006672/0.3548, allocations: 441.5 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3549, allocations: 13.56 kB / 0.5352 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.3551, allocations: 25.2 kB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.3553, allocations: 201.9 kB / 0.5354 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3553, allocations: 9.875 kB / 0.5354 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.3554, allocations: 21.95 kB / 0.5355 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.3556, allocations: 139 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3557, allocations: 4 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3557, allocations: 5.375 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.3557, allocations: 4.125 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.3559, allocations: 79.95 kB / 0.5357 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006752/0.3566, allocations: 469.5 kB / 0.5361 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.3568, allocations: 123.8 kB / 0.5363 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.3569, allocations: 58.05 kB / 0.5363 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.357, allocations: 1.281 kB / 0.5363 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.357, allocations: 35.84 kB / 0.5363 GB, free: 9.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.357, allocations: 1.375 kB / 0.5363 GB, free: 9.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001548/0.3586, allocations: 0.8123 MB / 0.5371 GB, free: 9.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.3586, allocations: 53.78 kB / 0.5372 GB, free: 9.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.3587, allocations: 151 kB / 0.5373 GB, free: 8.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.3588, allocations: 26.8 kB / 0.5374 GB, free: 8.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.3588, allocations: 118.2 kB / 0.5375 GB, free: 8.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.3589, allocations: 70.25 kB / 0.5375 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/0.359, allocations: 37.48 kB / 0.5376 GB, free: 8.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3591, allocations: 322.4 kB / 0.5379 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.865e-05/0.3592, allocations: 46.89 kB / 0.5379 GB, free: 8.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.3593, allocations: 84.31 kB / 0.538 GB, free: 8.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.3596, allocations: 128.5 kB / 0.5381 GB, free: 8.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3596, allocations: 1.5 kB / 0.5381 GB, free: 8.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003731/0.3599, allocations: 205 kB / 0.5383 GB, free: 8.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.36, allocations: 9.328 kB / 0.5383 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.36, allocations: 5.156 kB / 0.5383 GB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.3602, allocations: 38 kB / 0.5384 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.3603, allocations: 47.44 kB / 0.5384 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.3618, allocations: 1.734 MB / 0.5401 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.622e-05/0.3619, allocations: 3.406 kB / 0.5401 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.3619, allocations: 8.234 kB / 0.5401 GB, free: 6.301 MB / 398.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.0001089/0.362, allocations: 133.4 kB / 0.5403 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.9e-05/0.3621, allocations: 21.77 kB / 0.5403 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.799e-05/0.3621, allocations: 20.12 kB / 0.5403 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3621, allocations: 0 / 0.5403 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.3621, allocations: 5.062 kB / 0.5403 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.3622, allocations: 84.12 kB / 0.5404 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.3622, allocations: 8.953 kB / 0.5404 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.472e-05/0.3623, allocations: 3.156 kB / 0.5404 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.3624, allocations: 18.14 kB / 0.5404 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005646/0.3629, allocations: 294.1 kB / 0.5407 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004723/0.3634, allocations: 415.5 kB / 0.5411 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001121/0.3635, allocations: 55.31 kB / 0.5411 GB, free: 5.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.532e-05/0.3636, allocations: 103.7 kB / 0.5412 GB, free: 5.387 MB / 398.1 MB Notification: Performance of Backend: time 6.11e-07/0.3636, allocations: 1.281 kB / 0.5412 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007931/0.3644, allocations: 305.3 kB / 0.5415 GB, free: 5.141 MB / 398.1 MB Notification: Performance of SimCode: time 0.001139/0.3656, allocations: 0.8989 MB / 0.5424 GB, free: 4.32 MB / 398.1 MB Notification: Performance of Templates: time 0.00591/0.3715, allocations: 1.779 MB / 0.5441 GB, free: 3.441 MB / 398.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