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.001159/0.001159, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1928/0.1928, allocations: 46.1 MB / 344.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3373, allocations: 62.44 MB / 0.5316 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003135/0.3405, allocations: 1.929 MB / 0.5335 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00094/0.3414, allocations: 0.5513 MB / 0.5341 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.608e-05/0.3415, allocations: 6.688 kB / 0.5341 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.3417, allocations: 22.53 kB / 0.5341 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.615e-05/0.3418, allocations: 39.77 kB / 0.5341 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.342, allocations: 56.12 kB / 0.5342 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.3422, allocations: 154.4 kB / 0.5343 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.3424, allocations: 58.27 kB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.3425, allocations: 63.28 kB / 0.5344 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3427, allocations: 66.95 kB / 0.5345 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.3427, allocations: 11 kB / 0.5345 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.116e-05/0.3428, allocations: 15.12 kB / 0.5345 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.3428, allocations: 35.97 kB / 0.5346 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.3429, allocations: 69.66 kB / 0.5346 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.3431, allocations: 154.4 kB / 0.5348 GB, free: 11.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3431, allocations: 0 / 0.5348 GB, free: 11.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3431, allocations: 1.375 kB / 0.5348 GB, free: 11.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.3431, allocations: 0 / 0.5348 GB, free: 11.12 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.0005521/0.3437, allocations: 433.7 kB / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3437, allocations: 9.625 kB / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.3439, allocations: 26.52 kB / 0.5352 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.3441, allocations: 213.8 kB / 0.5354 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.3441, allocations: 9.875 kB / 0.5354 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.3442, allocations: 12.62 kB / 0.5354 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.3444, allocations: 135.5 kB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3445, allocations: 4 kB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.3445, allocations: 6 kB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.3445, allocations: 3.406 kB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.3447, allocations: 80.02 kB / 0.5357 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006667/0.3454, allocations: 456.9 kB / 0.5361 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.3456, allocations: 133.1 kB / 0.5362 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.3457, allocations: 57 kB / 0.5363 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.3457, allocations: 2.281 kB / 0.5363 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.3458, allocations: 43.67 kB / 0.5363 GB, free: 9.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.3458, allocations: 0 / 0.5363 GB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001397/0.3472, allocations: 0.8115 MB / 0.5371 GB, free: 9.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.3472, allocations: 53.41 kB / 0.5372 GB, free: 8.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.3474, allocations: 146.8 kB / 0.5373 GB, free: 8.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.3474, allocations: 27.02 kB / 0.5373 GB, free: 8.836 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.3475, allocations: 114.3 kB / 0.5374 GB, free: 8.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.3475, allocations: 71.22 kB / 0.5375 GB, free: 8.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.935e-05/0.3476, allocations: 33.47 kB / 0.5375 GB, free: 8.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3477, allocations: 333.4 kB / 0.5379 GB, free: 8.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.897e-05/0.3478, allocations: 40.05 kB / 0.5379 GB, free: 8.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.3479, allocations: 79.53 kB / 0.538 GB, free: 8.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3481, allocations: 143.9 kB / 0.5381 GB, free: 8.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3482, allocations: 1.344 kB / 0.5381 GB, free: 8.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003849/0.3485, allocations: 201 kB / 0.5383 GB, free: 8.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3486, allocations: 9.281 kB / 0.5383 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3486, allocations: 1.156 kB / 0.5383 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.3488, allocations: 50.27 kB / 0.5384 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.3489, allocations: 35.08 kB / 0.5384 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.3504, allocations: 1.737 MB / 0.5401 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.885e-05/0.3505, allocations: 11.06 kB / 0.5401 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.3505, allocations: 5.312 kB / 0.5401 GB, free: 6.246 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.0001131/0.3506, allocations: 129.3 kB / 0.5402 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.3507, allocations: 14.41 kB / 0.5402 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.961e-05/0.3507, allocations: 19.3 kB / 0.5403 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3507, allocations: 6.125 kB / 0.5403 GB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.3507, allocations: 1.062 kB / 0.5403 GB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3507, allocations: 0 / 0.5403 GB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007427/0.3515, allocations: 0.5525 MB / 0.5408 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3515, allocations: 4.031 kB / 0.5408 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.3517, allocations: 31.14 kB / 0.5408 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.3518, allocations: 36.17 kB / 0.5409 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3518, allocations: 6.031 kB / 0.5409 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.3529, allocations: 1.473 MB / 0.5423 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3529, allocations: 1.344 kB / 0.5423 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.3534, allocations: 347.8 kB / 0.5427 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.383e-05/0.3535, allocations: 93.23 kB / 0.5427 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.3535, allocations: 5.125 kB / 0.5428 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.991e-05/0.3536, allocations: 7.188 kB / 0.5428 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.3537, allocations: 14.05 kB / 0.5428 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.3537, allocations: 12.42 kB / 0.5428 GB, free: 3.695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.428e-05/0.3537, allocations: 111.8 kB / 0.5429 GB, free: 3.605 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3538, allocations: 4.062 kB / 0.5429 GB, free: 3.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.3541, allocations: 37.69 kB / 0.5429 GB, free: 3.598 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.000119/0.3542, allocations: 95.78 kB / 0.543 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005065/0.3547, allocations: 263.8 kB / 0.5433 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3547, allocations: 4.062 kB / 0.5433 GB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.355, allocations: 192.4 kB / 0.5435 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.3554, allocations: 27.77 kB / 0.5435 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008572/0.3562, allocations: 478.9 kB / 0.5439 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.3565, allocations: 0.7196 MB / 0.5446 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.3566, allocations: 15.22 kB / 0.5447 GB, free: 2.051 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3566, allocations: 1.062 kB / 0.5447 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Templates: time 0.004882/0.3615, allocations: 2.458 MB / 0.5471 GB, free: 0.7539 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