Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 216 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2194/0.2194, allocations: 44.92 MB / 358.8 MB, free: 6.246 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 63.91 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3012, allocations: 65.47 MB / 0.557 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001666/0.3029, allocations: 486.2 kB / 0.5575 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.3054, allocations: 1.34 MB / 0.5588 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.316e-05/0.3054, allocations: 0 / 0.5588 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.104e-05/0.3054, allocations: 0 / 0.5588 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.3054, allocations: 0 / 0.5588 GB, free: 5.941 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.3069, allocations: 0.5765 MB / 0.5593 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.981e-05/0.307, allocations: 8 kB / 0.5593 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.772e-05/0.307, allocations: 7.984 kB / 0.5593 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.268e-05/0.307, allocations: 0 / 0.5593 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.988e-05/0.3071, allocations: 3.938 kB / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-06/0.3071, allocations: 0 / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01729/0.3244, allocations: 2.562 MB / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.3244, allocations: 0 / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.747e-05/0.3244, allocations: 0 / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003886/0.3248, allocations: 167.7 kB / 0.562 GB, free: 3.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3248, allocations: 0 / 0.562 GB, free: 3.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3248, allocations: 0 / 0.562 GB, free: 3.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3248, allocations: 0 / 0.562 GB, free: 3.148 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.0003978/0.3252, allocations: 307.8 kB / 0.5623 GB, free: 2.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3252, allocations: 8.031 kB / 0.5623 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.079e-05/0.3253, allocations: 34.69 kB / 0.5623 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.371e-05/0.3253, allocations: 8.938 kB / 0.5624 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.85e-05/0.3254, allocations: 102.5 kB / 0.5625 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3254, allocations: 384 / 0.5625 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-06/0.3254, allocations: 384 / 0.5625 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.289e-05/0.3255, allocations: 41.62 kB / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3255, allocations: 0 / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.3255, allocations: 0 / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.3255, allocations: 0 / 0.5625 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.738e-05/0.3255, allocations: 7.938 kB / 0.5625 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.3256, allocations: 116.8 kB / 0.5626 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.168e-05/0.3257, allocations: 18.52 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.195e-05/0.3257, allocations: 8.953 kB / 0.5626 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.3257, allocations: 3.938 kB / 0.5626 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/0.3258, allocations: 64.25 kB / 0.5627 GB, free: 2.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3258, allocations: 0 / 0.5627 GB, free: 2.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.3259, allocations: 63.34 kB / 0.5628 GB, free: 2.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.326, allocations: 81.23 kB / 0.5628 GB, free: 2.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.408e-05/0.326, allocations: 89.86 kB / 0.5629 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.326, allocations: 25.7 kB / 0.563 GB, free: 1.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.3261, allocations: 84.14 kB / 0.563 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.3261, allocations: 0 / 0.563 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.3261, allocations: 21.64 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.3263, allocations: 310.8 kB / 0.5634 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.897e-06/0.3263, allocations: 4 kB / 0.5634 GB, free: 1.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.18e-06/0.3263, allocations: 4 kB / 0.5634 GB, free: 1.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.086e-05/0.3263, allocations: 60.27 kB / 0.5634 GB, free: 1.488 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3263, allocations: 0 / 0.5634 GB, free: 1.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.616e-05/0.3264, allocations: 75.27 kB / 0.5635 GB, free: 1.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.3264, allocations: 29.7 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3264, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.3265, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3265, allocations: 0 / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3265, allocations: 4.094 kB / 0.5635 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.3265, allocations: 11.95 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.3265, allocations: 0 / 0.5635 GB, free: 1.352 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.619e-05/0.3266, allocations: 131.5 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.3266, allocations: 11.92 kB / 0.5637 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.358e-06/0.3266, allocations: 3 kB / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3266, allocations: 0 / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3266, allocations: 0 / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.3266, allocations: 0 / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3267, allocations: 124.8 kB / 0.5638 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3267, allocations: 4 kB / 0.5638 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.3267, allocations: 3.938 kB / 0.5638 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.3267, allocations: 3.938 kB / 0.5638 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.3267, allocations: 3.984 kB / 0.5638 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3267, allocations: 0 / 0.5638 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3267, allocations: 0 / 0.5638 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.3268, allocations: 90.78 kB / 0.5639 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.206e-05/0.3268, allocations: 15.94 kB / 0.5639 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.3269, allocations: 4 kB / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.3269, allocations: 0 / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.3269, allocations: 0 / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-06/0.3269, allocations: 0 / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.312e-05/0.3269, allocations: 75.28 kB / 0.564 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3269, allocations: 0 / 0.564 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.3272, allocations: 71.86 kB / 0.5641 GB, free: 0.7344 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.001428/0.3286, allocations: 0.92 MB / 0.5649 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.3288, allocations: 59.34 kB / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3288, allocations: 4.062 kB / 0.565 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.723e-05/0.3288, allocations: 59.41 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.3289, allocations: 3.984 kB / 0.5651 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003317/0.3293, allocations: 134.6 kB / 0.5652 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3296, allocations: 0.669 MB / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.66e-06/0.3296, allocations: 0 / 0.5659 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.3296, allocations: 11.44 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3296, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.358, allocations: 3.263 MB / 0.569 GB, free: 11.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.76, allocations: 9.859 kB / 0.5691 GB, free: 11.7 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.525077980943024]