Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Diffusion.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.0007144/0.0007144, allocations: 72.27 kB / 9.851 MB, free: 0.8477 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009815/0.001696, allocations: 447.7 kB / 10.29 MB, free: 420 kB / 10.45 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.0007028/0.0007028, allocations: 149.9 kB / 11.17 MB, free: 3.008 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009141/0.001617, allocations: 480.2 kB / 11.64 MB, free: 2.535 MB / 13.93 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.009/1.009, allocations: 177.1 MB / 189.5 MB, free: 3.781 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.17/1.179, allocations: 53.65 MB / 243.2 MB, free: 2.367 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.09374/0.09374, allocations: 17.36 MB / 261.3 MB, free: 320 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01436/0.1081, allocations: 6.939 MB / 268.2 MB, free: 9.355 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me_cs",version="2.0+3.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me_cs",version="2.0+3.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 269.4 MB, free: 8.129 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.763e-06/8.235e-06, allocations: 5.266 kB / 269.4 MB, free: 8.125 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.Diffusion): time 0.03/0.03, allocations: 38.88 MB / 308.3 MB, free: 1.078 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.1443/0.1743, allocations: 17.12 MB / 325.4 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006353/0.1807, allocations: 121.5 kB / 325.5 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005294/0.186, allocations: 2.643 MB / 328.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006713/0.1927, allocations: 3.663 MB / 331.8 MB, free: 1.062 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004402/0.1971, allocations: 2.908 MB / 334.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.2073, allocations: 11.31 MB / 346.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00285/0.2102, allocations: 2.478 MB / 348.5 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007701/0.2179, allocations: 7.409 MB / 356 MB, free: 8.699 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004369/0.2222, allocations: 3.957 MB / 359.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.2239, allocations: 1.219 MB / 361.1 MB, free: 6.488 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.2279, allocations: 2.354 MB / 363.5 MB, free: 4.309 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002112/0.23, allocations: 3.006 MB / 366.5 MB, free: 1.297 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003532/0.2335, allocations: 3.41 MB / 369.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009999/0.2435, allocations: 10.89 MB / 380.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.216e-05/0.2436, allocations: 3.938 kB / 380.8 MB, free: 3.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.2436, allocations: 4 kB / 380.8 MB, free: 3.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001517/0.2437, allocations: 0 / 380.8 MB, free: 3.941 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3564 * Number of variables: 3564 Notification: Performance of Generate backend data structure: time 0.01244/0.2561, allocations: 12.37 MB / 393.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2562, allocations: 8.031 kB / 393.2 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.2575, allocations: 1.785 MB / 395 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007247/0.2647, allocations: 5.213 MB / 400.2 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003496/0.2682, allocations: 3.294 MB / 403.5 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/0.2692, allocations: 1.993 MB / 405.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007889/0.27, allocations: 1.129 MB / 406.6 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.2814, allocations: 14.22 MB / 420.8 MB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001359/0.2815, allocations: 0 / 420.8 MB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004689/0.282, allocations: 468.1 kB / 421.3 MB, free: 13.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001208/0.2832, allocations: 1.846 MB / 423.1 MB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.2959, allocations: 16.4 MB / 439.5 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05427/0.3501, allocations: 52.61 MB / 492.1 MB, free: 9.344 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005334/0.3555, allocations: 3.144 MB / 495.3 MB, free: 6.246 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002958/0.3584, allocations: 1.384 MB / 496.7 MB, free: 4.863 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.3595, allocations: 0.7521 MB / 497.4 MB, free: 4.117 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.3595, allocations: 94.78 kB / 497.5 MB, free: 4.016 MB / 458.7 MB Notification: Performance of pre-optimization done (n=533): time 6.582e-06/0.3595, allocations: 0 / 497.5 MB, free: 4.016 MB / 458.7 MB Notification: Performance of matching and sorting (n=755): time 0.3615/0.7211, allocations: 42.12 MB / 0.527 GB, free: 118.1 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02516/0.7462, allocations: 24.41 MB / 0.5508 GB, free: 95.2 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005535/0.7518, allocations: 7.6 MB / 0.5582 GB, free: 89.4 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001615/0.7534, allocations: 142.6 kB / 0.5584 GB, free: 89.34 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.7545, allocations: 2.907 MB / 0.5612 GB, free: 87.42 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001806/0.7563, allocations: 2.636 MB / 0.5638 GB, free: 85.5 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003158/0.7594, allocations: 1.753 MB / 0.5655 GB, free: 84.06 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 2.025e-05/0.7595, allocations: 312.3 kB / 0.5658 GB, free: 83.76 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005202/0.7647, allocations: 2.667 MB / 0.5684 GB, free: 81.09 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005349/0.77, allocations: 3.736 MB / 0.572 GB, free: 77.17 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01451/0.7845, allocations: 10.23 MB / 0.582 GB, free: 66.82 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.146e-05/0.7845, allocations: 4 kB / 0.582 GB, free: 66.81 MB / 458.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02195/0.8065, allocations: 10.09 MB / 0.5919 GB, free: 56.83 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.8065, allocations: 16 kB / 0.5919 GB, free: 56.81 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.8065, allocations: 24 kB / 0.5919 GB, free: 56.79 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02042/0.827, allocations: 10.28 MB / 0.602 GB, free: 46.54 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01788/0.8448, allocations: 4.962 MB / 0.6068 GB, free: 41.66 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02045/0.8653, allocations: 36.11 MB / 0.6421 GB, free: 3.914 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006307/0.8716, allocations: 307.8 kB / 0.6424 GB, free: 3.613 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/0.873, allocations: 1.616 MB / 0.644 GB, free: 1.996 MB / 458.8 MB Warning: Assuming fixed start value for the following 5 variables: d2.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d3.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d4.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d5.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 initialization (778): * Single equations (assignments): 746 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 26 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (4,3,62.5%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(6,20), (4,3), (3,8), (2,1), (6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00306/0.876, allocations: 0.5115 MB / 0.6445 GB, free: 1.578 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002188/0.8782, allocations: 0.8708 MB / 0.6453 GB, free: 0.7109 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02798/0.9062, allocations: 16.11 MB / 0.661 GB, free: 1.391 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1881/1.094, allocations: 5.731 MB / 0.6666 GB, free: 113.8 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.489e-05/1.094, allocations: 9.969 kB / 0.6666 GB, free: 113.8 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/1.094, allocations: 34.92 kB / 0.6667 GB, free: 113.8 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03308/1.128, allocations: 22.76 MB / 0.6889 GB, free: 110.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/1.128, allocations: 31.06 kB / 0.6889 GB, free: 110.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007594/1.135, allocations: 2.518 MB / 0.6914 GB, free: 110.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02089/1.156, allocations: 7.549 MB / 0.6988 GB, free: 110.3 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005911/1.157, allocations: 257.2 kB / 0.699 GB, free: 110.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02186/1.178, allocations: 36.85 MB / 0.735 GB, free: 81.31 MB / 474.8 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006203/1.185, allocations: 10.16 MB / 0.7449 GB, free: 73.08 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01749/1.202, allocations: 11.04 MB / 0.7557 GB, free: 66.08 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/1.204, allocations: 1.397 MB / 0.7571 GB, free: 65.02 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.205, allocations: 192.1 kB / 0.7573 GB, free: 64.84 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002552/1.207, allocations: 227.9 kB / 0.7575 GB, free: 64.62 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/1.208, allocations: 0.767 MB / 0.7582 GB, free: 63.88 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003902/1.209, allocations: 407.8 kB / 0.7586 GB, free: 63.48 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.003477/1.212, allocations: 5.165 MB / 0.7637 GB, free: 58.86 MB / 474.8 MB Notification: Performance of sort global known variables: time 9e-08/1.212, allocations: 0 / 0.7637 GB, free: 58.86 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006536/1.219, allocations: 4.104 MB / 0.7677 GB, free: 54.78 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 146 * Number of states: 19 ($STATESET8.x[3],$STATESET8.x[2],$STATESET8.x[1],d5.rear.n_flow,$STATESET7.x,$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],d4.rear.n_flow,$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],d3.rear.n_flow,$STATESET4.x,$STATESET3.x,d1.rear.n_flow,$STATESET2.x,$STATESET1.x,d2.rear.n_flow) * Number of discrete variables: 11 ($cse169,$cse163,$cse148,$cse143,$cse136,$cse127,$cse121,$cse110,$cse103,$cse93,$cse87) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (581): * Single equations (assignments): 556 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 14 systems {(1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(4,20), (9,10), (3,3), (3,9), (8,10), (4,20), (9,10), (3,3), (3,3), (3,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01666/1.235, allocations: 11.96 MB / 0.7793 GB, free: 42.16 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01102/1.246, allocations: 8.614 MB / 0.7877 GB, free: 33.61 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.216e-05/1.247, allocations: 117.9 kB / 0.7879 GB, free: 33.5 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005873/1.252, allocations: 6.035 MB / 0.7938 GB, free: 27.49 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006907/1.259, allocations: 3.092 MB / 0.7968 GB, free: 24.5 MB / 474.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4020:9-4020:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:742:5-742:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.876079893670976]