Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.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.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007934/0.0007934, allocations: 96.33 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 207.1 kB / 18.29 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.341/1.341, allocations: 227.7 MB / 246.8 MB, free: 9.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2185/0.2185, allocations: 46.19 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1406, allocations: 63.56 MB / 483.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00174/0.1423, allocations: 1.193 MB / 484.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008884/0.1433, allocations: 471 kB / 484.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.305e-05/0.1433, allocations: 4 kB / 484.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.1434, allocations: 0 / 484.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.81e-05/0.1434, allocations: 3.938 kB / 484.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.1437, allocations: 19.98 kB / 484.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.1438, allocations: 43.84 kB / 484.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.305e-05/0.1439, allocations: 11.98 kB / 484.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.144, allocations: 15.94 kB / 484.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.1441, allocations: 11.92 kB / 484.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.1441, allocations: 4 kB / 484.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.925e-05/0.1442, allocations: 11.98 kB / 484.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.1442, allocations: 7.922 kB / 485 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.875e-05/0.1442, allocations: 37.64 kB / 485 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.1443, allocations: 35.88 kB / 485 MB, free: 2.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1444, allocations: 3.938 kB / 485 MB, free: 2.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1444, allocations: 0 / 485 MB, free: 2.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1444, allocations: 4 kB / 485 MB, free: 2.164 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004427/0.1448, allocations: 347.7 kB / 485.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.1449, allocations: 12.88 kB / 485.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.212e-05/0.1449, allocations: 34.69 kB / 485.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.1451, allocations: 16.83 kB / 485.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.1453, allocations: 176.3 kB / 485.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1453, allocations: 4.375 kB / 485.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.1453, allocations: 4.375 kB / 485.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.1455, allocations: 63.52 kB / 485.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1455, allocations: 0 / 485.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.1455, allocations: 0 / 485.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1455, allocations: 0 / 485.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.694e-05/0.1456, allocations: 31.92 kB / 485.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/0.1461, allocations: 268.8 kB / 486 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.948e-05/0.1462, allocations: 30.58 kB / 486 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6e-05/0.1463, allocations: 24.84 kB / 486 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.1463, allocations: 0 / 486 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.1463, allocations: 38.56 kB / 486.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.1463, allocations: 0 / 486.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002841/0.1466, allocations: 69.7 kB / 486.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/0.1467, allocations: 81.11 kB / 486.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.729e-05/0.1468, allocations: 109.8 kB / 486.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1469, allocations: 29.7 kB / 486.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.1469, allocations: 88.12 kB / 486.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.147, allocations: 3.906 kB / 486.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.635e-05/0.147, allocations: 13.72 kB / 486.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1472, allocations: 319.2 kB / 486.8 MB, free: 204 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.803e-05/0.1472, allocations: 16.02 kB / 486.8 MB, free: 188 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.686e-05/0.1473, allocations: 29.7 kB / 486.8 MB, free: 152 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.1474, allocations: 36.78 kB / 486.8 MB, free: 112 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.1474, allocations: 3.938 kB / 486.8 MB, free: 108 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001729/0.1476, allocations: 57.86 kB / 486.9 MB, free: 44 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1477, allocations: 8 kB / 486.9 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1477, allocations: 0 / 486.9 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1477, allocations: 3.984 kB / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.95e-05/0.1478, allocations: 7.984 kB / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1478, allocations: 0 / 486.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.43e-05/0.1479, allocations: 11.98 kB / 486.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1479, allocations: 0 / 486.9 MB, free: 12 kB / 350.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: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001405/0.148, allocations: 121.8 kB / 487.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.1481, allocations: 7.906 kB / 487.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.353e-05/0.1481, allocations: 3.531 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1481, allocations: 3.938 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1481, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1481, allocations: 0 / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.1483, allocations: 169.6 kB / 487.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1483, allocations: 0 / 487.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-05/0.1484, allocations: 7.984 kB / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1484, allocations: 4 kB / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.1484, allocations: 0 / 487.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.1484, allocations: 11.92 kB / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1484, allocations: 4 kB / 487.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.1486, allocations: 155.5 kB / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.1487, allocations: 85.05 kB / 487.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.1487, allocations: 0 / 487.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.996e-05/0.1488, allocations: 15.98 kB / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.1489, allocations: 0 / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.1489, allocations: 7.984 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.998e-05/0.149, allocations: 87.22 kB / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.149, allocations: 0 / 487.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.1492, allocations: 8 kB / 487.6 MB, free: 15.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005069/0.1497, allocations: 0.6815 MB / 488.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.1499, allocations: 36.02 kB / 488.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.1499, allocations: 3.938 kB / 488.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/0.15, allocations: 19.92 kB / 488.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.1502, allocations: 0 / 488.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.1515, allocations: 1.283 MB / 489.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.1518, allocations: 0.677 MB / 490.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.287e-05/0.1518, allocations: 7.984 kB / 490.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.1519, allocations: 11.44 kB / 490.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1519, allocations: 0 / 490.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01147/0.1633, allocations: 1.243 MB / 491.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/0.1636, allocations: 182.1 kB / 491.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.9, allocations: 7.938 kB / 491.8 MB, free: 10.98 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches