Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.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.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001165, allocations: 113.2 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 204.6 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2327/0.2327, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 71.89 kB / 480.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3315, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001488/0.3331, allocations: 489.7 kB / 0.531 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.3355, allocations: 1.296 MB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.3355, allocations: 0 / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.3356, allocations: 0 / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.703e-06/0.3356, allocations: 7.938 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-219: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.001686/0.3373, allocations: 0.5713 MB / 0.5328 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.148e-05/0.3373, allocations: 9.375 kB / 0.5328 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.239e-05/0.3374, allocations: 1.375 kB / 0.5328 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.437e-05/0.3374, allocations: 0 / 0.5328 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.767e-05/0.3374, allocations: 1.375 kB / 0.5328 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.3375, allocations: 0 / 0.5328 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01327/0.3507, allocations: 2.534 MB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.43e-05/0.3508, allocations: 0.9688 kB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.951e-05/0.3508, allocations: 1.094 kB / 0.5353 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005918/0.3514, allocations: 166.6 kB / 0.5354 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3514, allocations: 0 / 0.5354 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3514, allocations: 0 / 0.5354 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.3514, allocations: 1.125 kB / 0.5354 GB, free: 10.66 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.0004608/0.3519, allocations: 382.3 kB / 0.5358 GB, free: 10.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.352, allocations: 12.88 kB / 0.5358 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.967e-05/0.352, allocations: 31.78 kB / 0.5358 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.103e-05/0.352, allocations: 5.891 kB / 0.5358 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.907e-05/0.3521, allocations: 164.3 kB / 0.536 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.3522, allocations: 1.156 kB / 0.536 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.3522, allocations: 1.031 kB / 0.536 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.195e-05/0.3523, allocations: 31.89 kB / 0.536 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.3523, allocations: 0 / 0.536 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.3523, allocations: 1.188 kB / 0.536 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3523, allocations: 4 kB / 0.536 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.94e-05/0.3524, allocations: 5.062 kB / 0.536 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.3525, allocations: 147.8 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.836e-05/0.3525, allocations: 24.14 kB / 0.5362 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.673e-05/0.3526, allocations: 5.922 kB / 0.5362 GB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.3526, allocations: 4.969 kB / 0.5362 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.3526, allocations: 57.27 kB / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.412e-06/0.3526, allocations: 4 kB / 0.5363 GB, free: 9.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001856/0.3528, allocations: 67.52 kB / 0.5363 GB, free: 9.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.3529, allocations: 77.11 kB / 0.5364 GB, free: 9.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.613e-05/0.3529, allocations: 90.92 kB / 0.5365 GB, free: 9.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.3529, allocations: 25.7 kB / 0.5365 GB, free: 9.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.618e-05/0.353, allocations: 85.33 kB / 0.5366 GB, free: 9.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.353, allocations: 0 / 0.5366 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.353, allocations: 15.84 kB / 0.5366 GB, free: 9.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3532, allocations: 316.1 kB / 0.5369 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-06/0.3532, allocations: 0 / 0.5369 GB, free: 8.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.967e-06/0.3532, allocations: 6.016 kB / 0.5369 GB, free: 8.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.062e-05/0.3532, allocations: 59.33 kB / 0.537 GB, free: 8.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3532, allocations: 0 / 0.537 GB, free: 8.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.939e-05/0.3533, allocations: 70 kB / 0.5371 GB, free: 8.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.3534, allocations: 31.61 kB / 0.5371 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3534, allocations: 0 / 0.5371 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.3534, allocations: 9.359 kB / 0.5371 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-06/0.3534, allocations: 0 / 0.5371 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3534, allocations: 5.25 kB / 0.5371 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.3534, allocations: 3.953 kB / 0.5371 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.3535, allocations: 1 kB / 0.5371 GB, free: 8.746 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.914e-05/0.3536, allocations: 137.6 kB / 0.5372 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.3536, allocations: 5.219 kB / 0.5372 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.008e-05/0.3536, allocations: 3.125 kB / 0.5372 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3536, allocations: 0 / 0.5372 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3536, allocations: 4.719 kB / 0.5372 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3536, allocations: 1.25 kB / 0.5372 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3537, allocations: 151.4 kB / 0.5374 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3537, allocations: 0 / 0.5374 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.334e-06/0.3537, allocations: 3.938 kB / 0.5374 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3537, allocations: 0 / 0.5374 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3538, allocations: 1.312 kB / 0.5374 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3538, allocations: 3.938 kB / 0.5374 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3538, allocations: 1.312 kB / 0.5374 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.3539, allocations: 97.38 kB / 0.5375 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.764e-05/0.3539, allocations: 85.05 kB / 0.5376 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.354, allocations: 1.156 kB / 0.5376 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-06/0.354, allocations: 5.094 kB / 0.5376 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.7e-05/0.354, allocations: 1.125 kB / 0.5376 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.354, allocations: 0 / 0.5376 GB, free: 8.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.889e-05/0.354, allocations: 80.39 kB / 0.5377 GB, free: 8.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3541, allocations: 0 / 0.5377 GB, free: 8.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.3544, allocations: 68.97 kB / 0.5377 GB, free: 8.078 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.001401/0.3558, allocations: 0.9134 MB / 0.5386 GB, free: 7.324 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.3559, allocations: 64.8 kB / 0.5387 GB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.356, allocations: 7.938 kB / 0.5387 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.901e-05/0.356, allocations: 55.03 kB / 0.5387 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.3562, allocations: 1.125 kB / 0.5387 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003554/0.3565, allocations: 137.6 kB / 0.5389 GB, free: 7.035 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.3568, allocations: 0.6745 MB / 0.5395 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.444e-06/0.3568, allocations: 128 / 0.5395 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.362e-05/0.3568, allocations: 13.78 kB / 0.5395 GB, free: 6.324 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3568, allocations: 0 / 0.5395 GB, free: 6.324 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.3794, allocations: 3.111 MB / 0.5426 GB, free: 4.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.978, allocations: 12.52 kB / 0.5426 GB, free: 4.605 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_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_Utilities_TestStrings.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.csv","/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_trunk_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches