Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001523/0.001523, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001703/0.001703, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.45/1.45, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2201/0.2201, allocations: 46.93 MB / 361.6 MB, free: 4.238 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 63.89 kB / 0.4974 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3214, allocations: 66.03 MB / 0.5619 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003457/0.3248, allocations: 1.943 MB / 0.5638 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.3259, allocations: 0.5737 MB / 0.5643 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.326, allocations: 4 kB / 0.5643 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.3262, allocations: 23.8 kB / 0.5643 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.3263, allocations: 39.58 kB / 0.5644 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.3265, allocations: 51.92 kB / 0.5644 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.3267, allocations: 151.3 kB / 0.5646 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.3269, allocations: 51.5 kB / 0.5646 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.3271, allocations: 59.8 kB / 0.5647 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.3272, allocations: 63.7 kB / 0.5647 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.3273, allocations: 16 kB / 0.5648 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.743e-05/0.3273, allocations: 20 kB / 0.5648 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.698e-05/0.3273, allocations: 39.77 kB / 0.5648 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.213e-05/0.3274, allocations: 63.67 kB / 0.5649 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.3277, allocations: 157.8 kB / 0.565 GB, free: 1.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3277, allocations: 0 / 0.565 GB, free: 1.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3277, allocations: 0 / 0.565 GB, free: 1.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3277, allocations: 0 / 0.565 GB, free: 1.141 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.0006151/0.3283, allocations: 365.7 kB / 0.5654 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3284, allocations: 12.03 kB / 0.5654 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.3285, allocations: 20.84 kB / 0.5654 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.3288, allocations: 150.3 kB / 0.5655 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3288, allocations: 12.38 kB / 0.5656 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.3288, allocations: 20.31 kB / 0.5656 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.3291, allocations: 130.3 kB / 0.5657 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3291, allocations: 3.938 kB / 0.5657 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.3292, allocations: 4 kB / 0.5657 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3292, allocations: 8 kB / 0.5657 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.3294, allocations: 87.88 kB / 0.5658 GB, free: 292 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007431/0.3301, allocations: 427.5 kB / 0.5662 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.3303, allocations: 114.4 kB / 0.5663 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.3304, allocations: 56.83 kB / 0.5664 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.3305, allocations: 0 / 0.5664 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.3305, allocations: 34.56 kB / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 9.72e-07/0.3305, allocations: 0 / 0.5664 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001485/0.332, allocations: 0.6653 MB / 0.5671 GB, free: 14.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.332, allocations: 59.34 kB / 0.5671 GB, free: 14.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.3322, allocations: 144.2 kB / 0.5672 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.3322, allocations: 29.7 kB / 0.5673 GB, free: 14.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.3323, allocations: 116.4 kB / 0.5674 GB, free: 14.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.3323, allocations: 75.31 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.3324, allocations: 41.7 kB / 0.5675 GB, free: 14.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3325, allocations: 322.8 kB / 0.5678 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.175e-05/0.3326, allocations: 39.98 kB / 0.5678 GB, free: 14.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3328, allocations: 79.34 kB / 0.5679 GB, free: 13.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.333, allocations: 139.3 kB / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-06/0.333, allocations: 0 / 0.5681 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003836/0.3334, allocations: 206.3 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3334, allocations: 14.38 kB / 0.5683 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3334, allocations: 0 / 0.5683 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.3336, allocations: 40.84 kB / 0.5683 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.3337, allocations: 40 kB / 0.5683 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.3353, allocations: 1.633 MB / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.982e-05/0.3354, allocations: 4 kB / 0.5699 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.3354, allocations: 8 kB / 0.5699 GB, free: 11.72 MB / 414.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.0001252/0.3356, allocations: 121.8 kB / 0.5701 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.3356, allocations: 11.95 kB / 0.5701 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.3356, allocations: 29.11 kB / 0.5701 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.3356, allocations: 3.938 kB / 0.5701 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3357, allocations: 0 / 0.5701 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3357, allocations: 0 / 0.5701 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000806/0.3365, allocations: 0.5262 MB / 0.5706 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3365, allocations: 0 / 0.5706 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.3366, allocations: 39.95 kB / 0.5707 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.3367, allocations: 32.83 kB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.3368, allocations: 4.188 kB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.3379, allocations: 1.373 MB / 0.572 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3379, allocations: 0 / 0.572 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.3384, allocations: 351.1 kB / 0.5724 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.3385, allocations: 15.94 kB / 0.5724 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.3385, allocations: 7.984 kB / 0.5724 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/0.3386, allocations: 4 kB / 0.5724 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.3386, allocations: 19.91 kB / 0.5724 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.3386, allocations: 8 kB / 0.5724 GB, free: 8.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.297e-05/0.3387, allocations: 105.5 kB / 0.5725 GB, free: 8.883 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3387, allocations: 0 / 0.5725 GB, free: 8.883 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.3391, allocations: 44.06 kB / 0.5726 GB, free: 8.84 MB / 414.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.000126/0.3392, allocations: 103.2 kB / 0.5727 GB, free: 8.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000525/0.3397, allocations: 250.8 kB / 0.5729 GB, free: 8.473 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3397, allocations: 0 / 0.5729 GB, free: 8.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.34, allocations: 194.6 kB / 0.5731 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.3403, allocations: 18.81 kB / 0.5731 GB, free: 8.254 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008536/0.3412, allocations: 487.2 kB / 0.5736 GB, free: 7.742 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.3415, allocations: 0.7206 MB / 0.5743 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.56e-05/0.3416, allocations: 15.44 kB / 0.5743 GB, free: 6.977 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3416, allocations: 0 / 0.5743 GB, free: 6.977 MB / 414.1 MB Notification: Performance of Templates: time 0.004716/0.3463, allocations: 2.473 MB / 0.5767 GB, free: 4.508 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 7.726543769938871]