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.000813/0.000813, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008155/0.0008155, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9088/0.9088, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.2711/0.2711, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.284e-05, allocations: 2.281 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00239/0.002413, allocations: 1.878 MB / 441.4 MB, free: 2.387 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008881/0.003301, allocations: 0.5298 MB / 442 MB, free: 1.852 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.003421, allocations: 7.938 kB / 442 MB, free: 1.844 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.003544, allocations: 15.8 kB / 442 MB, free: 1.828 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 9.788e-05/0.003642, allocations: 47.56 kB / 442 MB, free: 1.781 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.003916, allocations: 55.81 kB / 442.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.004088, allocations: 155.2 kB / 442.2 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.004233, allocations: 37.84 kB / 442.3 MB, free: 1.535 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.004429, allocations: 99.78 kB / 442.4 MB, free: 1.438 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.969e-05/0.004519, allocations: 43.88 kB / 442.4 MB, free: 1.395 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.004542, allocations: 12 kB / 442.4 MB, free: 1.383 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.878e-05/0.004591, allocations: 16 kB / 442.5 MB, free: 1.367 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.004612, allocations: 31.84 kB / 442.5 MB, free: 1.336 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.147e-05/0.004654, allocations: 39.92 kB / 442.5 MB, free: 1.297 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.004852, allocations: 155.5 kB / 442.7 MB, free: 1.145 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.004855, allocations: 0 / 442.7 MB, free: 1.145 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.004857, allocations: 7.938 kB / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.004862, allocations: 4 kB / 442.7 MB, free: 1.133 MB / 410.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.0004719/0.005334, allocations: 369.6 kB / 443 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.005375, allocations: 12.03 kB / 443.1 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.929e-05/0.005414, allocations: 46.73 kB / 443.1 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.005539, allocations: 20.84 kB / 443.1 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.005813, allocations: 141.6 kB / 443.3 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.006001, allocations: 16.38 kB / 443.3 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.006032, allocations: 16.33 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.006256, allocations: 126.7 kB / 443.4 MB, free: 340 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.006271, allocations: 4.188 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.006285, allocations: 7.938 kB / 443.4 MB, free: 328 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.006293, allocations: 4 kB / 443.4 MB, free: 324 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.006418, allocations: 83.89 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1899/0.1964, allocations: 405.4 kB / 443.9 MB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.1966, allocations: 105.8 kB / 444 MB, free: 46.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.552e-05/0.1966, allocations: 52.06 kB / 444.1 MB, free: 46.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.1966, allocations: 5.297 kB / 444.1 MB, free: 46.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.1967, allocations: 39.09 kB / 444.1 MB, free: 46.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.515e-06/0.1967, allocations: 2.875 kB / 444.1 MB, free: 46.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009947/0.1977, allocations: 0.655 MB / 444.8 MB, free: 46.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.086e-05/0.1977, allocations: 58.72 kB / 444.8 MB, free: 45.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.1978, allocations: 148.4 kB / 445 MB, free: 45.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.1978, allocations: 31.61 kB / 445 MB, free: 45.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.1978, allocations: 114.9 kB / 445.1 MB, free: 45.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.1979, allocations: 64.88 kB / 445.2 MB, free: 45.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.1979, allocations: 38.3 kB / 445.2 MB, free: 45.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.626e-05/0.1979, allocations: 322.1 kB / 445.5 MB, free: 45.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.329e-05/0.198, allocations: 44.66 kB / 445.6 MB, free: 45.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.469e-05/0.1981, allocations: 77.12 kB / 445.6 MB, free: 45.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.1982, allocations: 130.6 kB / 445.8 MB, free: 45.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1982, allocations: 0 / 445.8 MB, free: 45.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002363/0.1984, allocations: 216.9 kB / 446 MB, free: 45.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1984, allocations: 7.375 kB / 446 MB, free: 45.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1984, allocations: 3.938 kB / 446 MB, free: 45.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001333/0.1986, allocations: 44.03 kB / 446 MB, free: 45.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.1987, allocations: 33.3 kB / 446.1 MB, free: 45.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008122/0.1995, allocations: 1.626 MB / 447.7 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.635e-05/0.1996, allocations: 10.44 kB / 447.7 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1996, allocations: 14.84 kB / 447.7 MB, free: 43.6 MB / 410.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 6.759e-05/0.1996, allocations: 129.2 kB / 447.8 MB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.1997, allocations: 13.69 kB / 447.9 MB, free: 43.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.1997, allocations: 20.09 kB / 447.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1997, allocations: 7.594 kB / 447.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1997, allocations: 0 / 447.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1997, allocations: 7.312 kB / 447.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.2001, allocations: 0.5022 MB / 448.4 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2001, allocations: 2.938 kB / 448.4 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.339e-05/0.2002, allocations: 38.61 kB / 448.4 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.461e-05/0.2003, allocations: 29.7 kB / 448.5 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.2003, allocations: 10.17 kB / 448.5 MB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004782/0.2008, allocations: 1.363 MB / 449.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2008, allocations: 3.422 kB / 449.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.201, allocations: 341.2 kB / 450.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.201, allocations: 16.97 kB / 450.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.2011, allocations: 4 kB / 450.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.817e-05/0.2011, allocations: 5.75 kB / 450.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.2011, allocations: 21.22 kB / 450.2 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.2012, allocations: 9.016 kB / 450.2 MB, free: 41.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.193e-05/0.2012, allocations: 107.7 kB / 450.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2012, allocations: 0 / 450.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.2014, allocations: 40.44 kB / 450.4 MB, free: 41.4 MB / 410.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.0003589/0.2018, allocations: 0.8844 MB / 451.3 MB, free: 40.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003044/0.2021, allocations: 255.2 kB / 451.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2021, allocations: 0 / 451.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.2022, allocations: 193.3 kB / 451.7 MB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.2024, allocations: 19.78 kB / 451.7 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.2038, allocations: 2.011 MB / 453.7 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.961e-05/0.2039, allocations: 110 kB / 453.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.935e-05/0.2039, allocations: 10.42 kB / 453.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.204, allocations: 44.23 kB / 453.9 MB, free: 38.66 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.204, allocations: 0 / 453.9 MB, free: 38.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.2266, allocations: 4.175 MB / 458.1 MB, free: 37.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.048/7.275, allocations: 4.938 kB / 458.1 MB, free: 37.55 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] 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: 9.272867129184306]