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.00179/0.00179, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002106/0.002106, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.583/1.583, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2609/0.2609, allocations: 46.93 MB / 357.1 MB, free: 10.32 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.002269/0.002269, allocations: 67.91 kB / 0.4909 GB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1326, allocations: 66 MB / 0.5554 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003755/0.1364, allocations: 1.928 MB / 0.5572 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1376, allocations: 0.5688 MB / 0.5578 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.1377, allocations: 3.938 kB / 0.5578 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.1379, allocations: 23.8 kB / 0.5578 GB, free: 3.336 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.138, allocations: 39.62 kB / 0.5579 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.1382, allocations: 43.89 kB / 0.5579 GB, free: 3.254 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.1385, allocations: 155.2 kB / 0.5581 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.1387, allocations: 45.64 kB / 0.5581 GB, free: 3.055 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.1389, allocations: 71.77 kB / 0.5582 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.139, allocations: 63.7 kB / 0.5582 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.642e-05/0.139, allocations: 12 kB / 0.5582 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.334e-05/0.1391, allocations: 20 kB / 0.5583 GB, free: 2.891 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.292e-05/0.1391, allocations: 27.86 kB / 0.5583 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.1392, allocations: 63.67 kB / 0.5583 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.1395, allocations: 163.3 kB / 0.5585 GB, free: 2.641 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1395, allocations: 0 / 0.5585 GB, free: 2.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1395, allocations: 0 / 0.5585 GB, free: 2.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.1395, allocations: 0 / 0.5585 GB, free: 2.641 MB / 414.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.0008971/0.1404, allocations: 442.8 kB / 0.5589 GB, free: 2.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.1404, allocations: 8.031 kB / 0.5589 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.082e-05/0.1405, allocations: 46.73 kB / 0.559 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.1407, allocations: 24.83 kB / 0.559 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.141, allocations: 220.1 kB / 0.5592 GB, free: 1.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.141, allocations: 8.375 kB / 0.5592 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.576e-05/0.1411, allocations: 20.27 kB / 0.5592 GB, free: 1.793 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.1414, allocations: 129.6 kB / 0.5594 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.1414, allocations: 4 kB / 0.5594 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.1414, allocations: 4 kB / 0.5594 GB, free: 1.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1414, allocations: 7.984 kB / 0.5594 GB, free: 1.645 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.1416, allocations: 83.92 kB / 0.5595 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008253/0.1425, allocations: 464.3 kB / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.1427, allocations: 106.5 kB / 0.56 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.1428, allocations: 52.83 kB / 0.5601 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.1429, allocations: 7.938 kB / 0.5601 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.1429, allocations: 34.56 kB / 0.5601 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.814e-06/0.1429, allocations: 3.938 kB / 0.5601 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001759/0.1447, allocations: 0.8129 MB / 0.5609 GB, free: 15.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1447, allocations: 55.41 kB / 0.5609 GB, free: 15.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.1449, allocations: 146.8 kB / 0.5611 GB, free: 15.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.1449, allocations: 33.7 kB / 0.5611 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.145, allocations: 112.4 kB / 0.5612 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.145, allocations: 67.39 kB / 0.5613 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.212e-05/0.1451, allocations: 37.7 kB / 0.5613 GB, free: 15.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1453, allocations: 322.8 kB / 0.5616 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1454, allocations: 51.91 kB / 0.5617 GB, free: 15.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.1455, allocations: 79.34 kB / 0.5618 GB, free: 14.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.1458, allocations: 127.4 kB / 0.5619 GB, free: 14.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1458, allocations: 0 / 0.5619 GB, free: 14.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004433/0.1462, allocations: 206.2 kB / 0.5621 GB, free: 14.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.1463, allocations: 11.97 kB / 0.5621 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1463, allocations: 4 kB / 0.5621 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.1465, allocations: 40.83 kB / 0.5621 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.1467, allocations: 35.98 kB / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.1486, allocations: 1.741 MB / 0.5639 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.607e-05/0.1487, allocations: 7.984 kB / 0.5639 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.1487, allocations: 8 kB / 0.5639 GB, free: 12.64 MB / 430.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.0001458/0.1489, allocations: 133.8 kB / 0.564 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.1489, allocations: 11.91 kB / 0.564 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.81e-05/0.149, allocations: 21.19 kB / 0.564 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.149, allocations: 3.938 kB / 0.564 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.149, allocations: 4 kB / 0.564 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.149, allocations: 3.984 kB / 0.564 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000946/0.1499, allocations: 0.5506 MB / 0.5646 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1499, allocations: 0 / 0.5646 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.1501, allocations: 31.98 kB / 0.5646 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001337/0.1502, allocations: 36.78 kB / 0.5647 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1503, allocations: 3.984 kB / 0.5647 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.1517, allocations: 1.481 MB / 0.5661 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1517, allocations: 4.031 kB / 0.5661 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005914/0.1523, allocations: 349.2 kB / 0.5664 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.1523, allocations: 89.05 kB / 0.5665 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.1524, allocations: 11.98 kB / 0.5665 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.1525, allocations: 0 / 0.5665 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.067e-05/0.1525, allocations: 19.92 kB / 0.5666 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1525, allocations: 8.062 kB / 0.5666 GB, free: 9.645 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.991e-05/0.1526, allocations: 109.7 kB / 0.5667 GB, free: 9.539 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1526, allocations: 0 / 0.5667 GB, free: 9.539 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000366/0.153, allocations: 44 kB / 0.5667 GB, free: 9.496 MB / 430.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.0009667/0.154, allocations: 0.874 MB / 0.5676 GB, free: 8.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005931/0.1546, allocations: 250.8 kB / 0.5678 GB, free: 8.332 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1546, allocations: 0 / 0.5678 GB, free: 8.332 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.1549, allocations: 194.7 kB / 0.568 GB, free: 8.129 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.1553, allocations: 19.98 kB / 0.568 GB, free: 8.109 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.1582, allocations: 2.058 MB / 0.57 GB, free: 5.941 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.1586, allocations: 0.7243 MB / 0.5707 GB, free: 5.188 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.109e-05/0.1587, allocations: 9.422 kB / 0.5707 GB, free: 5.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.527e-05/0.1588, allocations: 43.42 kB / 0.5708 GB, free: 5.137 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1588, allocations: 0 / 0.5708 GB, free: 5.137 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03537/0.1942, allocations: 3.488 MB / 0.5742 GB, free: 1.785 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.03, allocations: 10.58 kB / 0.5742 GB, free: 1.777 MB / 430.1 MB " [Timeout remaining time 649] (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: 14.254619251005352]