Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.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.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestBooleanFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001093/0.001093, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2315/0.2315, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 75.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3576, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestBooleanFunctions): time 0.001618/0.3593, allocations: 495.9 kB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008286/0.3601, allocations: 378.8 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.628e-05/0.3602, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.3602, allocations: 1.062 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.354e-06/0.3602, allocations: 3.938 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:38:3-118:23:writable] Warning: Pure function 'ModelicaTest.Math.BooleanFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008424/0.3611, allocations: 195.4 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.705e-05/0.3611, allocations: 1.344 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.58e-05/0.3612, allocations: 1.25 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.344e-05/0.3612, allocations: 0 / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.343e-05/0.3612, allocations: 9.453 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-06/0.3612, allocations: 0 / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003755/0.3616, allocations: 192.7 kB / 0.5317 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.384e-06/0.3616, allocations: 1.375 kB / 0.5317 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.3616, allocations: 3.984 kB / 0.5317 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.3619, allocations: 144.1 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3619, allocations: 0 / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3619, allocations: 3.938 kB / 0.5319 GB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3619, allocations: 1.094 kB / 0.5319 GB, free: 12.48 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003559/0.3623, allocations: 368.2 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3623, allocations: 9.719 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.3624, allocations: 34.75 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.3624, allocations: 2.406 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.136e-05/0.3625, allocations: 160.4 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.3625, allocations: 4.359 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.134e-06/0.3625, allocations: 1.812 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.863e-05/0.3626, allocations: 39.97 kB / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.3626, allocations: 5.688 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-06/0.3627, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3627, allocations: 0 / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.549e-05/0.3627, allocations: 1.75 kB / 0.5325 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.3628, allocations: 147.5 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.592e-05/0.3629, allocations: 16.52 kB / 0.5326 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.729e-05/0.3629, allocations: 12.84 kB / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.3629, allocations: 1.812 kB / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.3629, allocations: 64.2 kB / 0.5327 GB, free: 11.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.3629, allocations: 0 / 0.5327 GB, free: 11.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.3631, allocations: 72.36 kB / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.3632, allocations: 77.11 kB / 0.5328 GB, free: 11.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.812e-05/0.3632, allocations: 97.78 kB / 0.5329 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.3633, allocations: 27.52 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.3633, allocations: 80.14 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.3633, allocations: 4 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.3633, allocations: 15.47 kB / 0.533 GB, free: 11.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3635, allocations: 312.7 kB / 0.5333 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.3635, allocations: 4.125 kB / 0.5333 GB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.3635, allocations: 1.781 kB / 0.5333 GB, free: 10.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.544e-05/0.3635, allocations: 63.8 kB / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3636, allocations: 0 / 0.5334 GB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.332e-05/0.3636, allocations: 66.52 kB / 0.5335 GB, free: 10.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.3637, allocations: 31.11 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3637, allocations: 3.938 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.3637, allocations: 0 / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.934e-06/0.3637, allocations: 1.875 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3637, allocations: 4 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.618e-05/0.3637, allocations: 0 / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.3637, allocations: 1.781 kB / 0.5335 GB, free: 10.57 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.561e-05/0.3638, allocations: 141.3 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-06/0.3638, allocations: 0 / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.209e-05/0.3639, allocations: 8.875 kB / 0.5337 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3639, allocations: 0 / 0.5337 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.3639, allocations: 0 / 0.5337 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3639, allocations: 0 / 0.5337 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.629e-05/0.364, allocations: 155.4 kB / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.364, allocations: 3.984 kB / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.364, allocations: 1.812 kB / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.364, allocations: 0 / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.364, allocations: 3.938 kB / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.364, allocations: 1.812 kB / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.364, allocations: 0 / 0.5338 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.006e-05/0.3641, allocations: 93.02 kB / 0.5339 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.086e-05/0.3642, allocations: 78.64 kB / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.3642, allocations: 3.938 kB / 0.534 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.677e-06/0.3642, allocations: 1.438 kB / 0.534 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.3642, allocations: 0 / 0.534 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.3642, allocations: 1.344 kB / 0.534 GB, free: 10 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.423e-05/0.3643, allocations: 75.28 kB / 0.5341 GB, free: 9.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3643, allocations: 0 / 0.5341 GB, free: 9.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.3645, allocations: 56.11 kB / 0.5341 GB, free: 9.914 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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0006052/0.3652, allocations: 0.7247 MB / 0.5348 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.202e-05/0.3653, allocations: 56.91 kB / 0.5349 GB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3653, allocations: 4 kB / 0.5349 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.726e-05/0.3653, allocations: 62.23 kB / 0.5349 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.3654, allocations: 5.703 kB / 0.5349 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002826/0.3657, allocations: 125.8 kB / 0.5351 GB, free: 8.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.366, allocations: 0.669 MB / 0.5357 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.921e-06/0.366, allocations: 1.375 kB / 0.5357 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.366, allocations: 8.812 kB / 0.5357 GB, free: 8.242 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.366, allocations: 0 / 0.5357 GB, free: 8.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.3843, allocations: 2.414 MB / 0.5381 GB, free: 6.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.46/7.845, allocations: 6.984 kB / 0.5381 GB, free: 6.887 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestBooleanFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestBooleanFunctions/TestBooleanFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestBooleanFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches