Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001679/0.001679, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001989, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2314/0.2314, allocations: 46.11 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 80.84 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1209, allocations: 62.44 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.8673/0.9882, allocations: 318.6 MB / 0.7801 GB, free: 388 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02056/1.009, allocations: 17.24 MB / 0.7969 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00247/1.011, allocations: 53.66 kB / 0.7969 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002515/1.014, allocations: 1.071 MB / 0.798 GB, free: 15.76 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01504/1.029, allocations: 6.107 MB / 0.804 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.01904/1.048, allocations: 8.546 MB / 0.8123 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.007208/1.055, allocations: 5.858 MB / 0.818 GB, free: 8.363 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003054/1.058, allocations: 1.995 MB / 0.82 GB, free: 6.402 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01353/1.072, allocations: 6.224 MB / 0.8261 GB, free: 1.305 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004682/1.077, allocations: 2.552 MB / 0.8285 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001203/1.078, allocations: 276 kB / 0.8288 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02911/1.107, allocations: 15.82 MB / 0.8443 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.002159/1.109, allocations: 1.135 MB / 0.8454 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002822/1.112, allocations: 1.434 MB / 0.8468 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03056/1.142, allocations: 11.44 MB / 0.8579 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/1.143, allocations: 0 / 0.8579 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.044e-06/1.143, allocations: 0 / 0.8579 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.986e-05/1.143, allocations: 0 / 0.8579 GB, free: 3.09 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.01187/1.155, allocations: 4.542 MB / 0.8624 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/1.155, allocations: 8.031 kB / 0.8624 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000472/1.155, allocations: 279.5 kB / 0.8626 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/1.156, allocations: 289 kB / 0.8629 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002492/1.159, allocations: 1.345 MB / 0.8642 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/1.159, allocations: 154.7 kB / 0.8644 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003126/1.159, allocations: 177.8 kB / 0.8646 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005491/1.165, allocations: 2.974 MB / 0.8675 GB, free: 9.293 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.473e-05/1.165, allocations: 7.984 kB / 0.8675 GB, free: 9.285 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002656/1.165, allocations: 80.36 kB / 0.8675 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002587/1.165, allocations: 163.6 kB / 0.8677 GB, free: 9.055 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005926/1.171, allocations: 3.263 MB / 0.8709 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01984/1.191, allocations: 11.37 MB / 0.882 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004901/1.196, allocations: 2.342 MB / 0.8843 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/1.198, allocations: 1.031 MB / 0.8853 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003787/1.202, allocations: 3.397 MB / 0.8886 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.224e-05/1.202, allocations: 60.16 kB / 0.8887 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001762/1.204, allocations: 264.8 kB / 0.8889 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=155): time 6.642e-06/1.204, allocations: 0 / 0.8889 GB, free: 2.137 MB / 0.6075 GB Notification: Performance of matching and sorting (n=155): time 0.009401/1.213, allocations: 3.727 MB / 0.8925 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/1.213, allocations: 201.2 kB / 0.8927 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00303/1.217, allocations: 1.915 MB / 0.8946 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000304/1.217, allocations: 65.7 kB / 0.8947 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008196/1.218, allocations: 0.9093 MB / 0.8956 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005647/1.218, allocations: 0.5283 MB / 0.8961 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007993/1.219, allocations: 454.9 kB / 0.8965 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001288/1.219, allocations: 309 kB / 0.8968 GB, free: 9.906 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/1.221, allocations: 1.113 MB / 0.8979 GB, free: 8.789 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002595/1.224, allocations: 1.505 MB / 0.8994 GB, free: 7.133 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004711/1.229, allocations: 2.726 MB / 0.902 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/1.229, allocations: 0 / 0.902 GB, free: 4.277 MB / 0.6231 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006682/1.235, allocations: 3.4 MB / 0.9053 GB, free: 0.8906 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/1.235, allocations: 148.5 kB / 0.9055 GB, free: 0.7148 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-05/1.236, allocations: 16.06 kB / 0.9055 GB, free: 0.6992 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00478/1.24, allocations: 0.8689 MB / 0.9063 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/1.243, allocations: 439.5 kB / 0.9068 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/1.245, allocations: 1.79 MB / 0.9085 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/1.247, allocations: 79.95 kB / 0.9086 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004621/1.248, allocations: 123.9 kB / 0.9087 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002825/1.251, allocations: 1.476 MB / 0.9102 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002537/1.253, allocations: 1.488 MB / 0.9116 GB, free: 10.26 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004502/1.258, allocations: 2.662 MB / 0.9142 GB, free: 7.457 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.277e-06/1.258, allocations: 7.938 kB / 0.9142 GB, free: 7.449 MB / 0.6387 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.006155/1.264, allocations: 3.22 MB / 0.9174 GB, free: 4.25 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/1.264, allocations: 148.6 kB / 0.9175 GB, free: 4.074 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/1.264, allocations: 16 kB / 0.9175 GB, free: 4.059 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/1.266, allocations: 380.1 kB / 0.9179 GB, free: 3.684 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002275/1.268, allocations: 478.3 kB / 0.9183 GB, free: 3.242 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/1.27, allocations: 1.422 MB / 0.9197 GB, free: 1.781 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/1.271, allocations: 87.94 kB / 0.9198 GB, free: 1.695 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002715/1.272, allocations: 119.9 kB / 0.9199 GB, free: 1.578 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,12), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006166/1.272, allocations: 301.5 kB / 0.9202 GB, free: 1.301 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005232/1.273, allocations: 217.6 kB / 0.9204 GB, free: 1.086 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007108/1.28, allocations: 3.939 MB / 0.9243 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/1.28, allocations: 23.98 kB / 0.9243 GB, free: 13.08 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.28, allocations: 0 / 0.9243 GB, free: 13.08 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/1.28, allocations: 7.969 kB / 0.9243 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008537/1.289, allocations: 5.11 MB / 0.9293 GB, free: 7.863 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/1.289, allocations: 4 kB / 0.9293 GB, free: 7.859 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/1.29, allocations: 289.5 kB / 0.9296 GB, free: 7.594 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004102/1.294, allocations: 0.8101 MB / 0.9304 GB, free: 6.781 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002141/1.294, allocations: 59.97 kB / 0.9304 GB, free: 6.723 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002014/1.296, allocations: 1.808 MB / 0.9322 GB, free: 4.871 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.296, allocations: 6.812 kB / 0.9322 GB, free: 4.867 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005277/1.302, allocations: 2.768 MB / 0.9349 GB, free: 2.027 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007099/1.302, allocations: 310.3 kB / 0.9352 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/1.303, allocations: 39.84 kB / 0.9352 GB, free: 1.664 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/1.304, allocations: 87.86 kB / 0.9353 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/1.305, allocations: 132.1 kB / 0.9354 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/1.305, allocations: 99.94 kB / 0.9355 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002188/1.307, allocations: 1.46 MB / 0.9369 GB, free: 15.88 MB / 0.67 GB Notification: Performance of sort global known variables: time 2e-07/1.307, allocations: 0 / 0.9369 GB, free: 15.88 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00643/1.314, allocations: 2.54 MB / 0.9394 GB, free: 13.33 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01099/1.325, allocations: 5.362 MB / 0.9447 GB, free: 8.059 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01117/1.336, allocations: 5.207 MB / 0.9498 GB, free: 2.844 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/1.336, allocations: 5.328 kB / 0.9498 GB, free: 2.84 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002477/1.338, allocations: 1.18 MB / 0.9509 GB, free: 1.695 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006712/1.345, allocations: 1.305 MB / 0.9522 GB, free: 424 kB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.237/1.582, allocations: 23.42 MB / 0.9751 GB, free: 310.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/1.583, allocations: 1.615 MB / 0.9766 GB, free: 309.9 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.004112/1.587, allocations: 1.362 MB / 0.978 GB, free: 309.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/1.589, allocations: 0.8705 MB / 0.9788 GB, free: 309.3 MB / 0.67 GB Notification: Performance of SimCode: time 1.794e-06/1.589, allocations: 0 / 0.9788 GB, free: 309.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1471/1.736, allocations: 108.2 MB / 1.084 GB, free: 215.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/17.29, allocations: 7.562 kB / 1.084 GB, free: 215.2 MB / 0.67 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sources_TestSources.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1)