Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 55.91 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1104, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007181/0.1176, allocations: 5.456 MB / 423.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004142/0.1217, allocations: 2.083 MB / 425.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000647/0.1224, allocations: 39.75 kB / 425.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005317/0.1229, allocations: 202.2 kB / 425.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003934/0.1233, allocations: 178.4 kB / 425.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009168/0.1242, allocations: 391.1 kB / 426.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.1253, allocations: 1.021 MB / 427.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000673/0.1259, allocations: 425.1 kB / 427.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.1264, allocations: 346.8 kB / 427.9 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004286/0.1268, allocations: 362.4 kB / 428.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1269, allocations: 92 kB / 428.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003149/0.1272, allocations: 155.9 kB / 428.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.1274, allocations: 199.4 kB / 428.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003909/0.1278, allocations: 434 kB / 429.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.129, allocations: 1.187 MB / 430.3 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.129, allocations: 0 / 430.3 MB, free: 44 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.129, allocations: 0 / 430.3 MB, free: 44 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1291, allocations: 4 kB / 430.3 MB, free: 40 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001547/0.1306, allocations: 1.044 MB / 431.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1306, allocations: 11.97 kB / 431.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.1308, allocations: 139.4 kB / 431.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.1309, allocations: 92.38 kB / 431.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008715/0.1318, allocations: 0.53 MB / 432.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.1319, allocations: 62.38 kB / 432.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.132, allocations: 92.31 kB / 432.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1334, allocations: 0.8046 MB / 433 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.1334, allocations: 7.953 kB / 433.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/0.1335, allocations: 32 kB / 433.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.1335, allocations: 28 kB / 433.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.1345, allocations: 499.6 kB / 433.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.138, allocations: 2.861 MB / 436.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.1385, allocations: 219.3 kB / 436.7 MB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1387, allocations: 100.8 kB / 436.8 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002617/0.139, allocations: 243.3 kB / 437 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.693e-05/0.139, allocations: 38.56 kB / 437.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.139, allocations: 0 / 437.1 MB, free: 8.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002472/0.1415, allocations: 1.265 MB / 438.3 MB, free: 7.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.1416, allocations: 51.41 kB / 438.4 MB, free: 7.508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.1419, allocations: 308.5 kB / 438.7 MB, free: 7.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.1419, allocations: 29.7 kB / 438.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000292/0.1422, allocations: 415.7 kB / 439.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.1423, allocations: 142.8 kB / 439.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.1425, allocations: 86.2 kB / 439.3 MB, free: 6.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1426, allocations: 350.7 kB / 439.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.1428, allocations: 105.1 kB / 439.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.1432, allocations: 254.7 kB / 440 MB, free: 5.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005638/0.1437, allocations: 392.8 kB / 440.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1437, allocations: 4 kB / 440.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007273/0.1445, allocations: 461.2 kB / 440.9 MB, free: 4.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.1445, allocations: 8 kB / 440.9 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1445, allocations: 7.984 kB / 440.9 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.1447, allocations: 36.84 kB / 440.9 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.145, allocations: 111.8 kB / 441 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004485/0.1455, allocations: 0.5567 MB / 441.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.1456, allocations: 20 kB / 441.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.1457, allocations: 20 kB / 441.6 MB, free: 4.059 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.146, allocations: 222.3 kB / 441.8 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.146, allocations: 39.7 kB / 441.9 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006051/0.1466, allocations: 322.2 kB / 442.2 MB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.1466, allocations: 7.984 kB / 442.2 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1466, allocations: 0 / 442.2 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1466, allocations: 0 / 442.2 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.1481, allocations: 1.024 MB / 443.2 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1481, allocations: 0 / 443.2 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003511/0.1485, allocations: 83.89 kB / 443.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001324/0.1486, allocations: 32.88 kB / 443.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.1486, allocations: 8 kB / 443.3 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003872/0.149, allocations: 0.5563 MB / 443.9 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.149, allocations: 4.031 kB / 443.9 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007874/0.1498, allocations: 0.5453 MB / 444.4 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.824e-05/0.1499, allocations: 112.9 kB / 444.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/0.1499, allocations: 8 kB / 444.6 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.1501, allocations: 8 kB / 444.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/0.1501, allocations: 23.97 kB / 444.6 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.1501, allocations: 15.92 kB / 444.6 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002101/0.1503, allocations: 207.1 kB / 444.8 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1503, allocations: 4 kB / 444.8 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004734/0.1508, allocations: 127.9 kB / 444.9 MB, free: 0.5508 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1831/0.3339, allocations: 1.088 MB / 446 MB, free: 29.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006418/0.3346, allocations: 288.5 kB / 446.3 MB, free: 29.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3346, allocations: 0 / 446.3 MB, free: 29.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.3348, allocations: 135.1 kB / 446.4 MB, free: 29.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.3354, allocations: 68.67 kB / 446.5 MB, free: 29.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.3401, allocations: 4.396 MB / 450.9 MB, free: 27.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.3405, allocations: 0.921 MB / 451.8 MB, free: 26.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.3407, allocations: 49.69 kB / 451.9 MB, free: 26.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.341, allocations: 245 kB / 452.1 MB, free: 26.42 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.341, allocations: 0 / 452.1 MB, free: 26.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03649/0.3775, allocations: 8.402 MB / 460.5 MB, free: 25.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.15, allocations: 8.547 kB / 460.5 MB, free: 25.34 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.805721333716065]