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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.8 MB / 245.5 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 109.9 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3728/0.3728, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4092, allocations: 62.02 MB / 0.5151 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003205/0.4125, allocations: 1.975 MB / 0.5171 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009002/0.4134, allocations: 0.5353 MB / 0.5176 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.4135, allocations: 3 kB / 0.5176 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.4137, allocations: 13.94 kB / 0.5176 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.4138, allocations: 37.17 kB / 0.5177 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.414, allocations: 32.25 kB / 0.5177 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.4142, allocations: 141.7 kB / 0.5178 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.4144, allocations: 51.23 kB / 0.5179 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.4146, allocations: 68.84 kB / 0.5179 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.4148, allocations: 60.91 kB / 0.518 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.4148, allocations: 8.094 kB / 0.518 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.414e-05/0.4149, allocations: 10.94 kB / 0.518 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.4149, allocations: 29.56 kB / 0.518 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.182e-05/0.415, allocations: 65.08 kB / 0.5181 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.4152, allocations: 145.9 kB / 0.5182 GB, free: 35.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4152, allocations: 0 / 0.5182 GB, free: 35.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.4152, allocations: 0 / 0.5182 GB, free: 35.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.4152, allocations: 0 / 0.5182 GB, free: 35.79 MB / 378.7 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.0005694/0.4158, allocations: 437 kB / 0.5187 GB, free: 35.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.4159, allocations: 7.875 kB / 0.5187 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.416, allocations: 27.47 kB / 0.5187 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.4162, allocations: 205.2 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.4162, allocations: 11.56 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.4163, allocations: 12.56 kB / 0.5189 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.4165, allocations: 133.9 kB / 0.519 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.4165, allocations: 3.75 kB / 0.519 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.4166, allocations: 4 kB / 0.519 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.4166, allocations: 3.25 kB / 0.519 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.4168, allocations: 80.64 kB / 0.5191 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.4174, allocations: 467.9 kB / 0.5196 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.4176, allocations: 130.2 kB / 0.5197 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.4177, allocations: 55.5 kB / 0.5197 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.4177, allocations: 2.656 kB / 0.5197 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.4177, allocations: 30.56 kB / 0.5198 GB, free: 34.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.254e-06/0.4178, allocations: 3.984 kB / 0.5198 GB, free: 34.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001377/0.4191, allocations: 0.8148 MB / 0.5206 GB, free: 33.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.4192, allocations: 53.91 kB / 0.5206 GB, free: 33.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.4193, allocations: 138.6 kB / 0.5208 GB, free: 33.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.4193, allocations: 29.7 kB / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.4194, allocations: 119.9 kB / 0.5209 GB, free: 33.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.4194, allocations: 62.86 kB / 0.521 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.4195, allocations: 36.59 kB / 0.521 GB, free: 33.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4196, allocations: 324.7 kB / 0.5213 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4197, allocations: 46.31 kB / 0.5214 GB, free: 33.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.4199, allocations: 80.67 kB / 0.5214 GB, free: 33.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.4201, allocations: 134.8 kB / 0.5216 GB, free: 33.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4201, allocations: 4 kB / 0.5216 GB, free: 33.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003782/0.4205, allocations: 207.4 kB / 0.5218 GB, free: 32.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.4205, allocations: 9.281 kB / 0.5218 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4205, allocations: 0 / 0.5218 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.4208, allocations: 46.78 kB / 0.5218 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.421, allocations: 37.61 kB / 0.5218 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.4223, allocations: 1.551 MB / 0.5234 GB, free: 31.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.166e-05/0.4224, allocations: 6.938 kB / 0.5234 GB, free: 31.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.4225, allocations: 9.719 kB / 0.5234 GB, free: 31.42 MB / 378.7 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.0001388/0.4226, allocations: 132.3 kB / 0.5235 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.4227, allocations: 11.66 kB / 0.5235 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.4227, allocations: 23.66 kB / 0.5235 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4228, allocations: 4.312 kB / 0.5235 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4228, allocations: 2.906 kB / 0.5235 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4228, allocations: 4.047 kB / 0.5235 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007669/0.4236, allocations: 0.5564 MB / 0.5241 GB, free: 30.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4236, allocations: 0 / 0.5241 GB, free: 30.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.4237, allocations: 34.52 kB / 0.5241 GB, free: 30.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.58e-05/0.4238, allocations: 28.28 kB / 0.5242 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.4239, allocations: 7 kB / 0.5242 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008402/0.4247, allocations: 1.374 MB / 0.5255 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4247, allocations: 3.938 kB / 0.5255 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.4274, allocations: 2.938 MB / 0.5284 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.4275, allocations: 89.92 kB / 0.5285 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.4275, allocations: 10.62 kB / 0.5285 GB, free: 26.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.916e-05/0.4276, allocations: 2.625 kB / 0.5285 GB, free: 26.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.4277, allocations: 22.2 kB / 0.5285 GB, free: 26.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.4277, allocations: 6.438 kB / 0.5285 GB, free: 26.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.631e-05/0.4278, allocations: 110.7 kB / 0.5286 GB, free: 26.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4278, allocations: 0 / 0.5286 GB, free: 26.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004528/0.4282, allocations: 52.03 kB / 0.5287 GB, free: 26.57 MB / 378.7 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.0001717/0.4284, allocations: 101.8 kB / 0.5288 GB, free: 26.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005605/0.429, allocations: 267.1 kB / 0.529 GB, free: 26.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.429, allocations: 0 / 0.529 GB, free: 26.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.4292, allocations: 194.9 kB / 0.5292 GB, free: 26.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004923/0.4297, allocations: 17.94 kB / 0.5292 GB, free: 26.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.4309, allocations: 0.7864 MB / 0.53 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.4312, allocations: 0.7259 MB / 0.5307 GB, free: 24.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.794e-05/0.4312, allocations: 10.06 kB / 0.5307 GB, free: 24.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.4313, allocations: 19.69 kB / 0.5307 GB, free: 24.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4313, allocations: 0 / 0.5307 GB, free: 24.8 MB / 378.7 MB Notification: Performance of Templates: time 0.004681/0.436, allocations: 1.859 MB / 0.5325 GB, free: 24.65 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches