Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 107.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002243/0.002244, allocations: 184.1 kB / 19.38 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1965/0.1965, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.384, allocations: 60.82 MB / 0.5195 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002883/0.387, allocations: 1.91 MB / 0.5214 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008035/0.3878, allocations: 0.4964 MB / 0.5219 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.559e-05/0.3879, allocations: 2.594 kB / 0.5219 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.388, allocations: 20.22 kB / 0.5219 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.232e-05/0.3881, allocations: 41.53 kB / 0.522 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.3883, allocations: 39.69 kB / 0.522 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.3885, allocations: 144.2 kB / 0.5221 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.3887, allocations: 58.38 kB / 0.5222 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.3888, allocations: 63.11 kB / 0.5222 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.389, allocations: 66.75 kB / 0.5223 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.389, allocations: 11.72 kB / 0.5223 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.733e-05/0.389, allocations: 11.62 kB / 0.5223 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.3891, allocations: 33.47 kB / 0.5224 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.8e-05/0.3892, allocations: 70.67 kB / 0.5224 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.3894, allocations: 149.6 kB / 0.5226 GB, free: 1.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3894, allocations: 0 / 0.5226 GB, free: 1.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3894, allocations: 0 / 0.5226 GB, free: 1.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3894, allocations: 0 / 0.5226 GB, free: 1.586 MB / 382.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.00053/0.39, allocations: 435.7 kB / 0.523 GB, free: 1.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.39, allocations: 8.906 kB / 0.523 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.3901, allocations: 15.94 kB / 0.523 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.3903, allocations: 209.7 kB / 0.5232 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3903, allocations: 9.781 kB / 0.5232 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.3903, allocations: 14.42 kB / 0.5232 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.3906, allocations: 130 kB / 0.5234 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3906, allocations: 0.6094 kB / 0.5234 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.3906, allocations: 5.25 kB / 0.5234 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3907, allocations: 7.438 kB / 0.5234 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.3909, allocations: 84.7 kB / 0.5235 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006657/0.3915, allocations: 462.8 kB / 0.5239 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.3918, allocations: 129.8 kB / 0.524 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3919, allocations: 60 kB / 0.5241 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.3919, allocations: 2.438 kB / 0.5241 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.392, allocations: 36.56 kB / 0.5241 GB, free: 340 kB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.252e-06/0.392, allocations: 0 / 0.5241 GB, free: 340 kB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001453/0.3934, allocations: 0.812 MB / 0.5249 GB, free: 15.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.3935, allocations: 54.66 kB / 0.525 GB, free: 15.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.3936, allocations: 137.7 kB / 0.5251 GB, free: 15.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.3937, allocations: 38.67 kB / 0.5251 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.923e-05/0.3937, allocations: 110.7 kB / 0.5252 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.3938, allocations: 64.44 kB / 0.5253 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.3939, allocations: 36.7 kB / 0.5253 GB, free: 15.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.394, allocations: 325.6 kB / 0.5256 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.969e-05/0.3941, allocations: 42.05 kB / 0.5257 GB, free: 14.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.3942, allocations: 77.91 kB / 0.5257 GB, free: 14.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.3945, allocations: 135 kB / 0.5259 GB, free: 14.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3945, allocations: 1.375 kB / 0.5259 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003932/0.3949, allocations: 207.1 kB / 0.5261 GB, free: 14.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3949, allocations: 9.344 kB / 0.5261 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3949, allocations: 2.844 kB / 0.5261 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.3951, allocations: 40.44 kB / 0.5261 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.3953, allocations: 35.81 kB / 0.5262 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.3968, allocations: 1.739 MB / 0.5279 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.827e-05/0.3969, allocations: 7.547 kB / 0.5279 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.3969, allocations: 4.875 kB / 0.5279 GB, free: 13.04 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.0001142/0.397, allocations: 126.7 kB / 0.528 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.3971, allocations: 17.34 kB / 0.528 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.3971, allocations: 25.88 kB / 0.528 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3971, allocations: 5.312 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3971, allocations: 1.375 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3971, allocations: 0.8438 kB / 0.528 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007615/0.3979, allocations: 0.5475 MB / 0.5286 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3979, allocations: 6.109 kB / 0.5286 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.3981, allocations: 40.62 kB / 0.5286 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.3982, allocations: 30.12 kB / 0.5286 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3982, allocations: 5.375 kB / 0.5287 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.3993, allocations: 1.479 MB / 0.5301 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3993, allocations: 1.312 kB / 0.5301 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005098/0.3999, allocations: 350.8 kB / 0.5304 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.3999, allocations: 89.38 kB / 0.5305 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.4, allocations: 6.234 kB / 0.5305 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.47e-05/0.4001, allocations: 8.094 kB / 0.5305 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.324e-05/0.4001, allocations: 16.05 kB / 0.5305 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.4001, allocations: 8.188 kB / 0.5306 GB, free: 10.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.4002, allocations: 105.8 kB / 0.5307 GB, free: 10.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4002, allocations: 0 / 0.5307 GB, free: 10.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003248/0.4005, allocations: 45.97 kB / 0.5307 GB, free: 10.53 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.0001065/0.4007, allocations: 99.91 kB / 0.5308 GB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004964/0.4012, allocations: 260.8 kB / 0.531 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4012, allocations: 0 / 0.531 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.4014, allocations: 204.8 kB / 0.5312 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.4018, allocations: 21.8 kB / 0.5313 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007541/0.4025, allocations: 452.5 kB / 0.5317 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.4029, allocations: 0.7211 MB / 0.5324 GB, free: 9.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.4029, allocations: 16.39 kB / 0.5324 GB, free: 9.074 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4029, allocations: 0 / 0.5324 GB, free: 9.074 MB / 398.1 MB Notification: Performance of Templates: time 0.004356/0.4073, allocations: 2.436 MB / 0.5348 GB, free: 7.84 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches