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.001378/0.001378, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 205.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2572/0.2572, allocations: 46.11 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 80.06 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3466, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002507/0.3491, allocations: 1.468 MB / 0.532 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008139/0.35, allocations: 478.2 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.643e-05/0.35, allocations: 3.938 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.767e-05/0.3501, allocations: 3.938 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.163e-05/0.3501, allocations: 13.52 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.3503, allocations: 28.47 kB / 0.5325 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.3504, allocations: 39.23 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.659e-05/0.3505, allocations: 6.797 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.3507, allocations: 25.91 kB / 0.5326 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.019e-05/0.3507, allocations: 17.23 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.3507, allocations: 3.5 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.99e-05/0.3508, allocations: 8.906 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.3508, allocations: 9.188 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.864e-05/0.3508, allocations: 18.89 kB / 0.5327 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.351, allocations: 33.16 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.351, allocations: 0 / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.351, allocations: 1.5 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.351, allocations: 0 / 0.5327 GB, free: 11.71 MB / 398.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.0004376/0.3514, allocations: 354.6 kB / 0.533 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3515, allocations: 12.3 kB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.3515, allocations: 32 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3517, allocations: 13.44 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.3519, allocations: 177 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3519, allocations: 4.375 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.3519, allocations: 6.125 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.352, allocations: 62.45 kB / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.3521, allocations: 0 / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.3521, allocations: 0 / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.3521, allocations: 4 kB / 0.5333 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.41e-05/0.3522, allocations: 20.58 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.3526, allocations: 275.1 kB / 0.5336 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.236e-05/0.3527, allocations: 31.47 kB / 0.5337 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.3527, allocations: 14.27 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.3528, allocations: 5.812 kB / 0.5337 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.3528, allocations: 30.56 kB / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3528, allocations: 0 / 0.5337 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002206/0.353, allocations: 63.23 kB / 0.5338 GB, free: 10.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.3531, allocations: 78.42 kB / 0.5338 GB, free: 10.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.344e-05/0.3532, allocations: 122.1 kB / 0.534 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3532, allocations: 25.7 kB / 0.534 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.197e-05/0.3533, allocations: 90.48 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.3533, allocations: 3.953 kB / 0.5341 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.3533, allocations: 17.59 kB / 0.5341 GB, free: 10.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3535, allocations: 321 kB / 0.5344 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.555e-05/0.3536, allocations: 10.41 kB / 0.5344 GB, free: 9.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-05/0.3536, allocations: 27.11 kB / 0.5344 GB, free: 9.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.951e-05/0.3537, allocations: 28.03 kB / 0.5345 GB, free: 9.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3537, allocations: 0 / 0.5345 GB, free: 9.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001235/0.3538, allocations: 59.45 kB / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.3539, allocations: 5.5 kB / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3539, allocations: 0 / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3539, allocations: 1.516 kB / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.039e-05/0.354, allocations: 2.75 kB / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.354, allocations: 0 / 0.5345 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.367e-05/0.354, allocations: 21.42 kB / 0.5345 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.354, allocations: 5.375 kB / 0.5345 GB, free: 9.773 MB / 398.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 9.474e-05/0.3541, allocations: 112.5 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.3542, allocations: 2.75 kB / 0.5347 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.3542, allocations: 12.89 kB / 0.5347 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.3542, allocations: 3.938 kB / 0.5347 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3542, allocations: 4 kB / 0.5347 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3542, allocations: 1.375 kB / 0.5347 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.3544, allocations: 167.1 kB / 0.5348 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3544, allocations: 1.375 kB / 0.5348 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.464e-05/0.3544, allocations: 6.75 kB / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.3545, allocations: 0 / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.3545, allocations: 1.375 kB / 0.5348 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.087e-05/0.3545, allocations: 3.938 kB / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3545, allocations: 0 / 0.5348 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.3547, allocations: 157.3 kB / 0.535 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.667e-05/0.3547, allocations: 78.52 kB / 0.5351 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.3547, allocations: 5.375 kB / 0.5351 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.37e-05/0.3548, allocations: 8.484 kB / 0.5351 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.3549, allocations: 12.11 kB / 0.5351 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.3549, allocations: 0 / 0.5351 GB, free: 9.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.094e-05/0.3549, allocations: 94.08 kB / 0.5352 GB, free: 9.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3549, allocations: 1.375 kB / 0.5352 GB, free: 9.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000205/0.3552, allocations: 5.5 kB / 0.5352 GB, free: 9.074 MB / 398.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.0004882/0.3557, allocations: 0.6872 MB / 0.5359 GB, free: 8.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.3558, allocations: 24.48 kB / 0.5359 GB, free: 8.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3558, allocations: 0 / 0.5359 GB, free: 8.383 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.072e-05/0.3559, allocations: 16.23 kB / 0.5359 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.3561, allocations: 11.44 kB / 0.5359 GB, free: 8.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.3573, allocations: 1.263 MB / 0.5371 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.3576, allocations: 0.6796 MB / 0.5378 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.11e-05/0.3577, allocations: 1.375 kB / 0.5378 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.3577, allocations: 16.8 kB / 0.5378 GB, free: 6.414 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3577, allocations: 0 / 0.5378 GB, free: 6.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.3796, allocations: 1.526 MB / 0.5393 GB, free: 5.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.65/8.029, allocations: 13.44 kB / 0.5393 GB, free: 5.539 MB / 398.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