Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Limiters,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Limiters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Limiters,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Limiters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007811/0.0007813, allocations: 96.28 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008514/0.0008516, allocations: 202.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 63.56 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.002213/0.1295, allocations: 1.404 MB / 484.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.131, allocations: 0.643 MB / 485.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.1312, allocations: 7.938 kB / 485.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.741e-05/0.1312, allocations: 7.922 kB / 485.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/0.1314, allocations: 11.88 kB / 485.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006533/0.1321, allocations: 131.1 kB / 485.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.1324, allocations: 147.6 kB / 485.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.1326, allocations: 41.02 kB / 485.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002335/0.1328, allocations: 63.77 kB / 485.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.133, allocations: 51.75 kB / 485.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.479e-05/0.1331, allocations: 8 kB / 485.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.269e-05/0.1332, allocations: 12 kB / 485.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.1332, allocations: 31.83 kB / 485.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1333, allocations: 77.42 kB / 485.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002537/0.1336, allocations: 123.8 kB / 485.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1336, allocations: 4 kB / 485.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1336, allocations: 0 / 485.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1336, allocations: 0 / 485.9 MB, free: 1.289 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009802/0.1346, allocations: 451 kB / 486.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.19e-05/0.1347, allocations: 8.875 kB / 486.4 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.637e-05/0.1348, allocations: 38.75 kB / 486.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.1351, allocations: 28.73 kB / 486.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1355, allocations: 220.1 kB / 486.7 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.1355, allocations: 4.375 kB / 486.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.1356, allocations: 12.38 kB / 486.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.1361, allocations: 202.8 kB / 486.9 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1362, allocations: 0 / 486.9 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.1362, allocations: 8 kB / 486.9 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1362, allocations: 0 / 486.9 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.1367, allocations: 151.9 kB / 487 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.1378, allocations: 476.3 kB / 487.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006826/0.1385, allocations: 246.4 kB / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.1387, allocations: 92.95 kB / 487.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.1388, allocations: 7.984 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.1388, allocations: 34.56 kB / 487.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.1388, allocations: 0 / 487.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.001672/0.1405, allocations: 0.6578 MB / 488.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.1406, allocations: 114.7 kB / 488.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.1408, allocations: 165.9 kB / 488.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1408, allocations: 25.7 kB / 488.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.726e-05/0.1409, allocations: 104.1 kB / 488.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.141, allocations: 31.45 kB / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.141, allocations: 17.72 kB / 489 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1412, allocations: 322.8 kB / 489.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.1415, allocations: 91.92 kB / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/0.1417, allocations: 110.5 kB / 489.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/0.1423, allocations: 180.7 kB / 489.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.1423, allocations: 0 / 489.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005504/0.1428, allocations: 221.5 kB / 489.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-05/0.1429, allocations: 100.9 kB / 490 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1429, allocations: 0 / 490 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.1429, allocations: 4 kB / 490 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.1431, allocations: 47.95 kB / 490 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.1431, allocations: 384 / 490 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.1433, allocations: 35.97 kB / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1433, allocations: 0 / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.723e-06/0.1433, allocations: 4 kB / 490.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002268/0.1436, allocations: 104.4 kB / 490.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-06/0.1436, allocations: 4 kB / 490.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-06/0.1436, allocations: 0 / 490.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.105e-05/0.1437, allocations: 23.98 kB / 490.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-06/0.1437, allocations: 0 / 490.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.365e-05/0.1438, allocations: 19.92 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-06/0.1438, allocations: 4 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.144, allocations: 197.1 kB / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.144, allocations: 11.84 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5e-05/0.1441, allocations: 21.39 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1441, allocations: 0 / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1441, allocations: 7.938 kB / 490.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1441, allocations: 3.984 kB / 490.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009681/0.1451, allocations: 0.5537 MB / 491 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1451, allocations: 4.031 kB / 491 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.1453, allocations: 43.91 kB / 491 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.1453, allocations: 7.938 kB / 491.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.1453, allocations: 0 / 491.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1453, allocations: 0 / 491.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1453, allocations: 0 / 491.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008486/0.1462, allocations: 424 kB / 491.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.256e-05/0.1462, allocations: 92.89 kB / 491.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.1463, allocations: 4.062 kB / 491.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/0.1466, allocations: 51.95 kB / 491.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.1466, allocations: 11.98 kB / 491.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.1466, allocations: 7.984 kB / 491.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.564e-05/0.1467, allocations: 125.8 kB / 491.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1467, allocations: 0 / 491.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.1471, allocations: 32.19 kB / 491.8 MB, free: 10.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * 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 (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001198/0.1483, allocations: 0.9434 MB / 492.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006588/0.1489, allocations: 239.8 kB / 493 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.149, allocations: 0 / 493 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.1492, allocations: 99.88 kB / 493.1 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.1496, allocations: 38.84 kB / 493.1 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.1526, allocations: 2.068 MB / 495.2 MB, free: 7.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.1529, allocations: 0.7127 MB / 495.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.246e-05/0.153, allocations: 12.89 kB / 495.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.301e-05/0.1531, allocations: 43.41 kB / 495.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1531, allocations: 0 / 495.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01456/0.1676, allocations: 3.452 MB / 499.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/0.1679, allocations: 180.4 kB / 499.6 MB, free: 3.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.056, allocations: 0 / 499.6 MB, free: 3.105 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Limiters_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Limiters_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Limiters.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,slewRateLimiter.y,limiter.y,variableLimiter.y,deadZone.y,sine.y,constPos.y,constNeg.y,idealDerivative.y Variables in the result:constNeg.k,constNeg.y,constPos.k,constPos.y,deadZone.u,deadZone.uMax,deadZone.uMin,deadZone.y,der(idealDerivative.u),der(slewRateLimiter.y),idealDerivative.u,idealDerivative.y,limiter.homotopyType,limiter.strict,limiter.u,limiter.uMax,limiter.uMin,limiter.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,slewRateLimiter.Falling,slewRateLimiter.Rising,slewRateLimiter.Td,slewRateLimiter.initType,slewRateLimiter.strict,slewRateLimiter.u,slewRateLimiter.y,slewRateLimiter.y_start,time,variableLimiter.homotopyType,variableLimiter.limit1,variableLimiter.limit2,variableLimiter.strict,variableLimiter.u,variableLimiter.y,variableLimiter.ySimplified