Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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) 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(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 94.91 kB / 16.3 MB, free: 5.992 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.001435/0.001436, allocations: 181.4 kB / 17.19 MB, free: 5.906 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.281/1.281, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002567, allocations: 10.5 kB / 300.7 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09165, allocations: 50.42 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002216/0.09391, allocations: 1.879 MB / 353 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008012/0.09473, allocations: 0.5691 MB / 353.6 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.09485, allocations: 4 kB / 353.6 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.612e-05/0.0949, allocations: 27.78 kB / 353.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.0951, allocations: 79.75 kB / 353.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.09527, allocations: 47.94 kB / 353.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.09551, allocations: 183.6 kB / 353.9 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.09569, allocations: 85.27 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.09581, allocations: 91.69 kB / 354.1 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.09595, allocations: 95.55 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.09598, allocations: 12 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.097e-05/0.09602, allocations: 12 kB / 354.2 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.09605, allocations: 31.84 kB / 354.2 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.428e-05/0.09611, allocations: 69.58 kB / 354.3 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.09629, allocations: 191.4 kB / 354.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.0963, allocations: 0 / 354.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0963, allocations: 0 / 354.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.09631, allocations: 0 / 354.5 MB, free: 8.355 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005894/0.09691, allocations: 0.4949 MB / 355 MB, free: 7.812 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.09695, allocations: 12.03 kB / 355 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.09701, allocations: 27.67 kB / 355 MB, free: 7.773 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.09725, allocations: 227.4 kB / 355.2 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.09728, allocations: 16.42 kB / 355.3 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.09732, allocations: 24 kB / 355.3 MB, free: 7.469 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.09765, allocations: 199.2 kB / 355.5 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.09768, allocations: 3.906 kB / 355.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.09771, allocations: 8 kB / 355.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.09772, allocations: 11.95 kB / 355.5 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002555/0.09798, allocations: 137.7 kB / 355.6 MB, free: 7.113 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008641/0.09885, allocations: 0.6308 MB / 356.3 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.09915, allocations: 186.5 kB / 356.5 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.09918, allocations: 4 kB / 356.5 MB, free: 6.234 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.09921, allocations: 34.56 kB / 356.5 MB, free: 6.191 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.09921, allocations: 0 / 356.5 MB, free: 6.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001708/0.1009, allocations: 1.084 MB / 357.6 MB, free: 5.016 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.101, allocations: 55.41 kB / 357.6 MB, free: 4.949 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.1011, allocations: 183.1 kB / 357.8 MB, free: 4.762 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.1012, allocations: 33.64 kB / 357.8 MB, free: 4.723 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.1012, allocations: 132.8 kB / 358 MB, free: 4.59 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.612e-05/0.1013, allocations: 118.3 kB / 358.1 MB, free: 4.473 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/0.1013, allocations: 4 kB / 358.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1014, allocations: 330.8 kB / 358.4 MB, free: 4.137 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.1016, allocations: 75.97 kB / 358.5 MB, free: 4.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.1017, allocations: 98.81 kB / 358.6 MB, free: 3.957 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1019, allocations: 89.39 kB / 358.7 MB, free: 3.871 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1019, allocations: 0 / 358.7 MB, free: 3.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004634/0.1024, allocations: 299.9 kB / 359 MB, free: 3.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1024, allocations: 5.875 kB / 359 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1024, allocations: 8 kB / 359 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.1026, allocations: 40.83 kB / 359 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.1028, allocations: 59.91 kB / 359.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001232/0.104, allocations: 1.577 MB / 360.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1042, allocations: 16.06 kB / 360.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1042, allocations: 12 kB / 360.7 MB, free: 1.719 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.1043, allocations: 133.8 kB / 360.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.1044, allocations: 27.66 kB / 360.8 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.456e-05/0.1044, allocations: 34.64 kB / 360.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.1045, allocations: 7.953 kB / 360.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1045, allocations: 0 / 360.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1045, allocations: 4.375 kB / 360.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.1055, allocations: 0.7784 MB / 361.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1055, allocations: 8 kB / 361.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.1058, allocations: 59.91 kB / 361.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.1059, allocations: 40.81 kB / 361.8 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.1059, allocations: 4 kB / 361.8 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.1069, allocations: 1.39 MB / 363.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.107, allocations: 0 / 363.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.1076, allocations: 0.515 MB / 363.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.164e-05/0.1077, allocations: 104.8 kB / 363.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.1077, allocations: 8 kB / 363.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.1079, allocations: 8 kB / 363.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.1079, allocations: 23.92 kB / 363.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.108, allocations: 11.94 kB / 363.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.741e-05/0.1081, allocations: 135.2 kB / 364 MB, free: 14.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1081, allocations: 0 / 364 MB, free: 14.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.1084, allocations: 64 kB / 364 MB, free: 14.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001246/0.1086, allocations: 111.2 kB / 364.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.1092, allocations: 342.6 kB / 364.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1092, allocations: 0 / 364.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.1095, allocations: 246.4 kB / 364.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.1098, allocations: 36.09 kB / 364.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.111, allocations: 0.8791 MB / 365.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.1113, allocations: 0.7641 MB / 366.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.584e-05/0.1114, allocations: 22.28 kB / 366.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.1115, allocations: 23.44 kB / 366.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1115, allocations: 0 / 366.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Templates: time 0.005023/0.1165, allocations: 2.404 MB / 368.8 MB, free: 9.191 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches