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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 84.55 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002358/0.002358, allocations: 163.9 kB / 23.96 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2014/0.2014, allocations: 32.81 MB / 293.5 MB, free: 28 kB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 3.938 kB / 440.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.494e-05, allocations: 2.281 kB / 440.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003509/0.003534, allocations: 1.86 MB / 441.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.004788, allocations: 0.5298 MB / 442.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.004922, allocations: 4 kB / 442.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.005072, allocations: 23.67 kB / 442.5 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.005227, allocations: 47.67 kB / 442.5 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.005521, allocations: 43.83 kB / 442.6 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.005788, allocations: 159.2 kB / 442.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.005957, allocations: 37.84 kB / 442.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.006221, allocations: 103.7 kB / 442.9 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.006336, allocations: 43.81 kB / 442.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.006367, allocations: 12 kB / 442.9 MB, free: 5.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.006436, allocations: 19.94 kB / 443 MB, free: 5.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.22e-05/0.006468, allocations: 23.92 kB / 443 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.14e-05/0.00654, allocations: 47.84 kB / 443 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.006801, allocations: 155.5 kB / 443.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.006803, allocations: 0 / 443.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006804, allocations: 8 kB / 443.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.00681, allocations: 0 / 443.2 MB, free: 5.047 MB / 366.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.0006313/0.007442, allocations: 357.7 kB / 443.5 MB, free: 4.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.007483, allocations: 12.03 kB / 443.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.007653, allocations: 20.84 kB / 443.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.007921, allocations: 149.6 kB / 443.7 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.007944, allocations: 16.36 kB / 443.7 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.793e-05/0.007982, allocations: 12.38 kB / 443.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.008272, allocations: 130.7 kB / 443.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.00829, allocations: 8.078 kB / 443.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.008314, allocations: 12.12 kB / 443.9 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.008322, allocations: 4 kB / 443.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.008523, allocations: 83.94 kB / 444 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007354/0.009258, allocations: 372 kB / 444.3 MB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.00951, allocations: 125.5 kB / 444.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.00963, allocations: 56.81 kB / 444.5 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.009652, allocations: 0 / 444.5 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.009682, allocations: 38.56 kB / 444.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.009683, allocations: 0 / 444.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001728/0.01141, allocations: 0.6538 MB / 445.2 MB, free: 2.863 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.01147, allocations: 63.34 kB / 445.3 MB, free: 2.789 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.01161, allocations: 125.8 kB / 445.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.01164, allocations: 25.7 kB / 445.4 MB, free: 2.625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.994e-05/0.01173, allocations: 120.4 kB / 445.5 MB, free: 2.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.333e-05/0.01179, allocations: 71.42 kB / 445.6 MB, free: 2.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.706e-05/0.01186, allocations: 41.66 kB / 445.6 MB, free: 2.387 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.012, allocations: 318.8 kB / 446 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.01211, allocations: 39.98 kB / 446 MB, free: 2.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.01224, allocations: 75.41 kB / 446.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.01249, allocations: 139.3 kB / 446.2 MB, free: 1.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.01249, allocations: 0 / 446.2 MB, free: 1.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004255/0.01292, allocations: 210.2 kB / 446.4 MB, free: 1.578 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.01293, allocations: 4 kB / 446.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.01294, allocations: 0 / 446.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.01312, allocations: 40.84 kB / 446.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.0133, allocations: 39.91 kB / 446.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2121/0.2254, allocations: 1.605 MB / 448.1 MB, free: 20.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.2256, allocations: 3.359 kB / 448.1 MB, free: 20.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.2256, allocations: 9.281 kB / 448.1 MB, free: 20.69 MB / 366.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.0001367/0.2257, allocations: 127.7 kB / 448.2 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.466e-05/0.2258, allocations: 11.91 kB / 448.2 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.2258, allocations: 23.97 kB / 448.3 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.2258, allocations: 6.203 kB / 448.3 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.2258, allocations: 1.094 kB / 448.3 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.2259, allocations: 6.203 kB / 448.3 MB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009544/0.2268, allocations: 476.3 kB / 448.7 MB, free: 20.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/0.2268, allocations: 1.125 kB / 448.7 MB, free: 20.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.227, allocations: 40.06 kB / 448.8 MB, free: 20.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001556/0.2272, allocations: 28.92 kB / 448.8 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.2272, allocations: 4.781 kB / 448.8 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.2283, allocations: 1.348 MB / 450.2 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2283, allocations: 1.312 kB / 450.2 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.2289, allocations: 346.3 kB / 450.5 MB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.229, allocations: 12.28 kB / 450.5 MB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.229, allocations: 5.844 kB / 450.5 MB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.99e-05/0.2291, allocations: 4.469 kB / 450.5 MB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2292, allocations: 19.95 kB / 450.5 MB, free: 18.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.2292, allocations: 7.688 kB / 450.6 MB, free: 18.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.966e-05/0.2293, allocations: 101.5 kB / 450.7 MB, free: 18.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2293, allocations: 0 / 450.7 MB, free: 18.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000418/0.2297, allocations: 37.47 kB / 450.7 MB, free: 18.85 MB / 366.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.0001519/0.2299, allocations: 104.6 kB / 450.8 MB, free: 18.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.2305, allocations: 259 kB / 451 MB, free: 18.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.2306, allocations: 0 / 451 MB, free: 18.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003303/0.2309, allocations: 185 kB / 451.2 MB, free: 18.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004296/0.2313, allocations: 29.77 kB / 451.3 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.2324, allocations: 385.6 kB / 451.6 MB, free: 18.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.2326, allocations: 106 kB / 451.7 MB, free: 18.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.944e-05/0.2327, allocations: 14.97 kB / 451.8 MB, free: 18.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.2327, allocations: 15.12 kB / 451.8 MB, free: 18.13 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.2327, allocations: 0 / 451.8 MB, free: 18.13 MB / 366.1 MB Notification: Performance of Templates: time 0.005929/0.2386, allocations: 1.585 MB / 453.4 MB, free: 17.96 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.778869386762381]