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.001486/0.001486, allocations: 115.2 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001783/0.001783, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, 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.2194/0.2194, allocations: 46.09 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 75.88 kB / 482 MB, free: 4.137 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3559, allocations: 62.44 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002939/0.3588, allocations: 1.923 MB / 0.5335 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3599, allocations: 0.5551 MB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.3601, allocations: 3.594 kB / 0.5341 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3602, allocations: 21.58 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.509e-05/0.3603, allocations: 49 kB / 0.5341 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.3606, allocations: 47.06 kB / 0.5342 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.3608, allocations: 150.2 kB / 0.5343 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.361, allocations: 72.44 kB / 0.5344 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.3612, allocations: 63.28 kB / 0.5344 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.3613, allocations: 66.94 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.3613, allocations: 11 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.7e-05/0.3614, allocations: 15.12 kB / 0.5345 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.3614, allocations: 30.61 kB / 0.5346 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.734e-05/0.3615, allocations: 70.98 kB / 0.5346 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.3617, allocations: 158.4 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3617, allocations: 0 / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3618, allocations: 1.375 kB / 0.5348 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.3618, allocations: 4 kB / 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.0005911/0.3624, allocations: 433.7 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3624, allocations: 9.625 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.3626, allocations: 22.58 kB / 0.5352 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.3629, allocations: 212.7 kB / 0.5354 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.3629, allocations: 9.875 kB / 0.5354 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.3629, allocations: 16.62 kB / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.3632, allocations: 130.8 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.3632, allocations: 1.312 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.3633, allocations: 5.344 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3633, allocations: 3.281 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3635, allocations: 84.36 kB / 0.5357 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.3642, allocations: 464.5 kB / 0.5361 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.3644, allocations: 124.8 kB / 0.5362 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3645, allocations: 58.17 kB / 0.5363 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.855e-05/0.3646, allocations: 1.281 kB / 0.5363 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.3646, allocations: 39.62 kB / 0.5363 GB, free: 9.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.3646, allocations: 0 / 0.5363 GB, free: 9.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001455/0.366, allocations: 0.8012 MB / 0.5371 GB, free: 9.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.3661, allocations: 56.78 kB / 0.5372 GB, free: 9.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3662, allocations: 155.7 kB / 0.5373 GB, free: 8.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.3663, allocations: 25.7 kB / 0.5373 GB, free: 8.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.3663, allocations: 118 kB / 0.5375 GB, free: 8.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.441e-05/0.3664, allocations: 67.19 kB / 0.5375 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.633e-05/0.3665, allocations: 37.58 kB / 0.5376 GB, free: 8.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.921e-05/0.3666, allocations: 321.5 kB / 0.5379 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.659e-05/0.3667, allocations: 47.39 kB / 0.5379 GB, free: 8.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3668, allocations: 80.94 kB / 0.538 GB, free: 8.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.367, allocations: 136.3 kB / 0.5381 GB, free: 8.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.367, allocations: 1.531 kB / 0.5381 GB, free: 8.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003828/0.3674, allocations: 208.8 kB / 0.5383 GB, free: 8.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3674, allocations: 13.62 kB / 0.5383 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3675, allocations: 1.094 kB / 0.5383 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.3677, allocations: 37.69 kB / 0.5384 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.3679, allocations: 43.56 kB / 0.5384 GB, free: 8.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.3693, allocations: 1.729 MB / 0.5401 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.25e-05/0.3694, allocations: 7.344 kB / 0.5401 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.3695, allocations: 4.531 kB / 0.5401 GB, free: 6.316 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.0001165/0.3696, allocations: 133.3 kB / 0.5402 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.3696, allocations: 10.31 kB / 0.5402 GB, free: 6.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.896e-05/0.3697, allocations: 15.28 kB / 0.5403 GB, free: 6.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3697, allocations: 6.125 kB / 0.5403 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3697, allocations: 2.094 kB / 0.5403 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.3697, allocations: 192 / 0.5403 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007547/0.3705, allocations: 0.5588 MB / 0.5408 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3705, allocations: 1.016 kB / 0.5408 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.3706, allocations: 43.11 kB / 0.5409 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000111/0.3708, allocations: 28.53 kB / 0.5409 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3708, allocations: 5.156 kB / 0.5409 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.3718, allocations: 1.474 MB / 0.5423 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3718, allocations: 1.188 kB / 0.5423 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.3723, allocations: 348.6 kB / 0.5427 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.3724, allocations: 88.05 kB / 0.5427 GB, free: 3.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.3724, allocations: 5.969 kB / 0.5427 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.505e-05/0.3725, allocations: 10.17 kB / 0.5428 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.3725, allocations: 18.64 kB / 0.5428 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3726, allocations: 8.25 kB / 0.5428 GB, free: 3.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.336e-05/0.3726, allocations: 111.5 kB / 0.5429 GB, free: 3.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3726, allocations: 0 / 0.5429 GB, free: 3.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.373, allocations: 38.91 kB / 0.5429 GB, free: 3.668 MB / 398.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.0001128/0.3731, allocations: 99.25 kB / 0.543 GB, free: 3.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005066/0.3736, allocations: 267.1 kB / 0.5433 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3736, allocations: 0 / 0.5433 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.3739, allocations: 197 kB / 0.5435 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.3742, allocations: 20.86 kB / 0.5435 GB, free: 3.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007837/0.375, allocations: 484.9 kB / 0.5439 GB, free: 2.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3753, allocations: 0.7165 MB / 0.5446 GB, free: 2.125 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.064e-05/0.3754, allocations: 15.25 kB / 0.5447 GB, free: 2.117 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3754, allocations: 4 kB / 0.5447 GB, free: 2.113 MB / 398.1 MB Notification: Performance of Templates: time 0.004252/0.3796, allocations: 2.455 MB / 0.5471 GB, free: 0.8242 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