Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sources.TestSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources") translateModel(ModelicaTest.Fluid.TestComponents.Sources.TestSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 195.5 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3317/0.3317, allocations: 37.97 MB / 307.3 MB, free: 10.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 68.53 kB / 374.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 56.47 MB / 431 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.764/0.8696, allocations: 338.1 MB / 0.751 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02557/0.8953, allocations: 20.54 MB / 0.7711 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00295/0.8982, allocations: 69.28 kB / 0.7712 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003127/0.9014, allocations: 0.9263 MB / 0.7721 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01585/0.9173, allocations: 6.097 MB / 0.778 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.02292/0.9402, allocations: 8.254 MB / 0.7861 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009039/0.9493, allocations: 8.399 MB / 0.7943 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.9519, allocations: 1.664 MB / 0.7959 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01407/0.966, allocations: 6.142 MB / 0.8019 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004998/0.9711, allocations: 2.586 MB / 0.8044 GB, free: 9.527 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.9722, allocations: 140 kB / 0.8046 GB, free: 9.391 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03063/1.003, allocations: 17.99 MB / 0.8221 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001835/1.005, allocations: 1.009 MB / 0.8231 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002482/1.007, allocations: 1.303 MB / 0.8244 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0303/1.038, allocations: 12.53 MB / 0.8366 GB, free: 8.488 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/1.038, allocations: 0 / 0.8366 GB, free: 8.488 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.875e-06/1.038, allocations: 0 / 0.8366 GB, free: 8.488 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001881/1.038, allocations: 0 / 0.8366 GB, free: 8.488 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.01388/1.052, allocations: 4.787 MB / 0.8413 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/1.052, allocations: 8.031 kB / 0.8413 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/1.053, allocations: 277.1 kB / 0.8416 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002315/1.055, allocations: 1.372 MB / 0.8429 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/1.055, allocations: 139.5 kB / 0.8431 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/1.056, allocations: 180 kB / 0.8432 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005355/1.061, allocations: 3.017 MB / 0.8462 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/1.061, allocations: 4 kB / 0.8462 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/1.061, allocations: 83.95 kB / 0.8463 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002065/1.062, allocations: 159.6 kB / 0.8464 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006428/1.068, allocations: 3.293 MB / 0.8496 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2198/1.288, allocations: 11.34 MB / 0.8607 GB, free: 256.4 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/1.292, allocations: 2.368 MB / 0.863 GB, free: 256.4 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/1.294, allocations: 1.047 MB / 0.864 GB, free: 256.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002903/1.297, allocations: 4.693 MB / 0.8686 GB, free: 251.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.305e-05/1.297, allocations: 57.44 kB / 0.8687 GB, free: 251.6 MB / 0.5919 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001341/1.298, allocations: 258.3 kB / 0.8689 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=156): time 4.889e-06/1.298, allocations: 1.25 kB / 0.8689 GB, free: 251.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=156): time 0.006424/1.305, allocations: 3.61 MB / 0.8724 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/1.305, allocations: 197.5 kB / 0.8726 GB, free: 250 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/1.307, allocations: 1.906 MB / 0.8745 GB, free: 249.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002764/1.307, allocations: 64.33 kB / 0.8746 GB, free: 249.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004613/1.308, allocations: 0.9058 MB / 0.8754 GB, free: 248.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/1.308, allocations: 0.5311 MB / 0.876 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006441/1.309, allocations: 461 kB / 0.8764 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.946e-05/1.309, allocations: 304.9 kB / 0.8767 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/1.311, allocations: 1.111 MB / 0.8778 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/1.313, allocations: 1.526 MB / 0.8793 GB, free: 246.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003504/1.316, allocations: 2.756 MB / 0.882 GB, free: 245 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/1.316, allocations: 3.344 kB / 0.882 GB, free: 245 MB / 0.5919 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.005345/1.322, allocations: 3.389 MB / 0.8853 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.686e-05/1.322, allocations: 148.5 kB / 0.8854 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/1.322, allocations: 13.25 kB / 0.8854 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003606/1.325, allocations: 0.753 MB / 0.8862 GB, free: 243.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/1.327, allocations: 461.8 kB / 0.8866 GB, free: 243.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/1.329, allocations: 1.644 MB / 0.8882 GB, free: 242.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/1.331, allocations: 133.8 kB / 0.8883 GB, free: 242.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/1.331, allocations: 158.2 kB / 0.8885 GB, free: 242 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002251/1.333, allocations: 1.473 MB / 0.8899 GB, free: 241.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001905/1.335, allocations: 1.492 MB / 0.8914 GB, free: 240.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003977/1.339, allocations: 2.679 MB / 0.894 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.134e-05/1.339, allocations: 3.406 kB / 0.894 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=252) (initialization_lambda0): time 0.005666/1.345, allocations: 3.23 MB / 0.8972 GB, free: 237.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.591e-05/1.345, allocations: 151.2 kB / 0.8973 GB, free: 237.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/1.345, allocations: 12.38 kB / 0.8973 GB, free: 237.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/1.347, allocations: 360.2 kB / 0.8977 GB, free: 237.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/1.349, allocations: 0.4892 MB / 0.8981 GB, free: 237.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008381/1.35, allocations: 1.336 MB / 0.8994 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/1.352, allocations: 123.9 kB / 0.8996 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002742/1.352, allocations: 150.9 kB / 0.8997 GB, free: 236.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (239): * Single equations (assignments): 232 * 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,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005916/1.353, allocations: 315.8 kB / 0.9 GB, free: 236.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/1.353, allocations: 215.8 kB / 0.9002 GB, free: 236 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006419/1.359, allocations: 3.769 MB / 0.9039 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/1.359, allocations: 20.03 kB / 0.9039 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/1.36, allocations: 1.188 kB / 0.9039 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/1.36, allocations: 10.73 kB / 0.9039 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009702/1.369, allocations: 5.548 MB / 0.9093 GB, free: 232.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/1.369, allocations: 8.531 kB / 0.9093 GB, free: 232.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.371, allocations: 317.9 kB / 0.9096 GB, free: 232.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003491/1.374, allocations: 0.6787 MB / 0.9103 GB, free: 232.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003164/1.375, allocations: 61.72 kB / 0.9104 GB, free: 232 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/1.376, allocations: 1.64 MB / 0.912 GB, free: 230.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/1.376, allocations: 8.297 kB / 0.912 GB, free: 230.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005655/1.382, allocations: 2.852 MB / 0.9148 GB, free: 229.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009811/1.383, allocations: 317.9 kB / 0.9151 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004405/1.383, allocations: 46.53 kB / 0.9151 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/1.385, allocations: 114.1 kB / 0.9152 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/1.385, allocations: 140.8 kB / 0.9154 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002763/1.385, allocations: 134.6 kB / 0.9155 GB, free: 229.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002116/1.388, allocations: 1.444 MB / 0.9169 GB, free: 228.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.21e-07/1.388, allocations: 0 / 0.9169 GB, free: 228.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006862/1.394, allocations: 2.709 MB / 0.9195 GB, free: 228.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (165): * Single equations (assignments): 162 * 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), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006917/1.401, allocations: 2.546 MB / 0.922 GB, free: 227.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.007875/1.409, allocations: 4.586 MB / 0.9265 GB, free: 226 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/1.409, allocations: 5.297 kB / 0.9265 GB, free: 226 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001988/1.411, allocations: 1.209 MB / 0.9277 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006311/1.418, allocations: 1.296 MB / 0.9289 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/1.424, allocations: 4.913 MB / 0.9337 GB, free: 222.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008427/1.424, allocations: 1.616 MB / 0.9353 GB, free: 221.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004111/1.429, allocations: 1.139 MB / 0.9364 GB, free: 221.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008846/1.429, allocations: 263.5 kB / 0.9367 GB, free: 221 MB / 0.5919 GB Notification: Performance of SimCode: time 5.2e-07/1.429, allocations: 0 / 0.9367 GB, free: 221 MB / 0.5919 GB Notification: Performance of Templates: time 0.09962/1.529, allocations: 90.24 MB / 1.025 GB, free: 131.1 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sources.TestSources.pipe 2>&1)