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.001656/0.001656, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001864/0.001864, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.2521/0.2521, allocations: 46.93 MB / 360.9 MB, free: 4.27 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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002155/0.002155, allocations: 67.91 kB / 0.4961 GB, free: 7.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3315, allocations: 66.03 MB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00356/0.335, allocations: 1.936 MB / 0.5625 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3361, allocations: 0.5659 MB / 0.5631 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.3362, allocations: 4 kB / 0.5631 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.3364, allocations: 27.72 kB / 0.5631 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3365, allocations: 39.64 kB / 0.5631 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.3368, allocations: 47.89 kB / 0.5632 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002705/0.337, allocations: 159.2 kB / 0.5633 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.3372, allocations: 43.67 kB / 0.5634 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.3375, allocations: 67.83 kB / 0.5634 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.3377, allocations: 63.64 kB / 0.5635 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.3377, allocations: 12 kB / 0.5635 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.32e-05/0.3378, allocations: 20 kB / 0.5635 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.433e-05/0.3379, allocations: 31.84 kB / 0.5636 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.366e-05/0.3379, allocations: 71.66 kB / 0.5636 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.3383, allocations: 155.4 kB / 0.5638 GB, free: 1.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3383, allocations: 3.938 kB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3383, allocations: 0 / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.3383, allocations: 0 / 0.5638 GB, free: 1.203 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.0008332/0.3392, allocations: 357.7 kB / 0.5641 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.3392, allocations: 12.02 kB / 0.5641 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.311e-05/0.3393, allocations: 42.75 kB / 0.5642 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3395, allocations: 32.83 kB / 0.5642 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.3398, allocations: 157.6 kB / 0.5644 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3399, allocations: 8.375 kB / 0.5644 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/0.3399, allocations: 20.33 kB / 0.5644 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003176/0.3402, allocations: 134 kB / 0.5645 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3402, allocations: 0 / 0.5645 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.3403, allocations: 4 kB / 0.5645 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.3403, allocations: 4 kB / 0.5645 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.3405, allocations: 87.94 kB / 0.5646 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008635/0.3414, allocations: 435.5 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.3416, allocations: 110.4 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.3417, allocations: 56.83 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3417, allocations: 4 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3418, allocations: 34.56 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.954e-06/0.3418, allocations: 0 / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001555/0.3433, allocations: 0.6649 MB / 0.5659 GB, free: 14.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3434, allocations: 55.41 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.3435, allocations: 139.7 kB / 0.5661 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.3436, allocations: 37.64 kB / 0.5661 GB, free: 14.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.3436, allocations: 108.4 kB / 0.5662 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.3437, allocations: 75.36 kB / 0.5663 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/0.3438, allocations: 37.7 kB / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3439, allocations: 330.8 kB / 0.5666 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.344, allocations: 39.98 kB / 0.5667 GB, free: 14.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.3441, allocations: 76.84 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.3444, allocations: 139.3 kB / 0.5669 GB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3444, allocations: 7.938 kB / 0.5669 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004054/0.3448, allocations: 206.2 kB / 0.5671 GB, free: 13.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3448, allocations: 7.938 kB / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3448, allocations: 4 kB / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.345, allocations: 40.83 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.3452, allocations: 35.92 kB / 0.5672 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.3469, allocations: 1.641 MB / 0.5688 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.244e-05/0.347, allocations: 8 kB / 0.5688 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.347, allocations: 4 kB / 0.5688 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.0001325/0.3471, allocations: 129.8 kB / 0.5689 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.3472, allocations: 7.953 kB / 0.5689 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.3472, allocations: 21.12 kB / 0.5689 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3472, allocations: 7.922 kB / 0.5689 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3472, allocations: 8.062 kB / 0.5689 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3472, allocations: 0 / 0.5689 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008496/0.3481, allocations: 0.5145 MB / 0.5694 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3481, allocations: 0 / 0.5694 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.3482, allocations: 35.97 kB / 0.5695 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/0.3484, allocations: 32.88 kB / 0.5695 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.3484, allocations: 4 kB / 0.5695 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.3496, allocations: 1.373 MB / 0.5708 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3496, allocations: 0 / 0.5708 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005323/0.3501, allocations: 347.3 kB / 0.5712 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.901e-05/0.3502, allocations: 20.05 kB / 0.5712 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.3502, allocations: 4 kB / 0.5712 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.3503, allocations: 11.98 kB / 0.5712 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.3503, allocations: 15.92 kB / 0.5712 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.3504, allocations: 7.984 kB / 0.5712 GB, free: 8.992 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.623e-05/0.3504, allocations: 104.8 kB / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3504, allocations: 0 / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.3508, allocations: 44 kB / 0.5714 GB, free: 8.848 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.0008543/0.3517, allocations: 0.8807 MB / 0.5722 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005939/0.3522, allocations: 258.9 kB / 0.5725 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3523, allocations: 0 / 0.5725 GB, free: 7.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002914/0.3525, allocations: 193 kB / 0.5727 GB, free: 7.473 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.3529, allocations: 23.92 kB / 0.5727 GB, free: 7.449 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.3557, allocations: 2.062 MB / 0.5747 GB, free: 5.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.3561, allocations: 0.7205 MB / 0.5754 GB, free: 4.531 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.435e-05/0.3562, allocations: 21.41 kB / 0.5754 GB, free: 4.508 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.349e-05/0.3562, allocations: 43.42 kB / 0.5755 GB, free: 4.465 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3562, allocations: 0 / 0.5755 GB, free: 4.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03548/0.3917, allocations: 3.595 MB / 0.579 GB, free: 1.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.69, allocations: 8 kB / 0.579 GB, free: 1 MB / 414.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] 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: 15.747296603862196]