Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.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.001268/0.001268, allocations: 113.8 kB / 19.73 MB, free: 2.242 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.001468/0.001468, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.416/1.416, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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.1378/0.1378, allocations: 23.85 MB / 337.1 MB, free: 11.19 MB / 270.1 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical 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.001921/0.001921, allocations: 67.89 kB / 472 MB, free: 7.699 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2923, allocations: 59.86 MB / 0.5193 GB, free: 9.621 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2): time 0.03693/0.3292, allocations: 27.63 MB / 0.5463 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.3527, allocations: 18.32 MB / 0.5642 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.3538, allocations: 27.75 kB / 0.5642 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.3551, allocations: 480 kB / 0.5647 GB, free: 11.01 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.3575, allocations: 0.8409 MB / 0.5655 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008444/0.3659, allocations: 2.851 MB / 0.5683 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003067/0.369, allocations: 1.642 MB / 0.5699 GB, free: 6.375 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.3702, allocations: 0.7312 MB / 0.5706 GB, free: 5.621 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008941/0.3711, allocations: 0.7245 MB / 0.5713 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.3722, allocations: 0.8172 MB / 0.5721 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.3724, allocations: 144 kB / 0.5723 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005533/0.378, allocations: 1.778 MB / 0.574 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004627/0.3784, allocations: 366.7 kB / 0.5744 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008702/0.3793, allocations: 0.7388 MB / 0.5751 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008421/0.3877, allocations: 3.595 MB / 0.5786 GB, free: 13.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3877, allocations: 0 / 0.5786 GB, free: 13.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3877, allocations: 0 / 0.5786 GB, free: 13.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.3878, allocations: 0 / 0.5786 GB, free: 13.44 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 303 * Number of variables: 303 Notification: Performance of Generate backend data structure: time 0.003593/0.3914, allocations: 1.889 MB / 0.5804 GB, free: 11.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3914, allocations: 15.97 kB / 0.5804 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.059e-05/0.3915, allocations: 34.58 kB / 0.5805 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002242/0.3917, allocations: 181.8 kB / 0.5807 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.3933, allocations: 395.3 kB / 0.581 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.395, allocations: 0.9081 MB / 0.5819 GB, free: 9.949 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/0.3952, allocations: 205.1 kB / 0.5821 GB, free: 9.723 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002134/0.3954, allocations: 119.9 kB / 0.5822 GB, free: 9.605 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.3982, allocations: 1.66 MB / 0.5838 GB, free: 7.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.3982, allocations: 4 kB / 0.5839 GB, free: 7.867 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.3984, allocations: 44 kB / 0.5839 GB, free: 7.824 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.3984, allocations: 35.98 kB / 0.5839 GB, free: 7.789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003371/0.4018, allocations: 2.124 MB / 0.586 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008325/0.4101, allocations: 5.392 MB / 0.5913 GB, free: 84 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.4115, allocations: 0.6899 MB / 0.5919 GB, free: 15.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006031/0.4121, allocations: 324.4 kB / 0.5923 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006767/0.4189, allocations: 2.784 MB / 0.595 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.4189, allocations: 34.56 kB / 0.595 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003095/0.4192, allocations: 79.25 kB / 0.5951 GB, free: 12.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/0.4192, allocations: 4 kB / 0.5951 GB, free: 12.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=34): time 0.001431/0.4206, allocations: 0.6077 MB / 0.5957 GB, free: 11.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.102e-05/0.4207, allocations: 106.8 kB / 0.5958 GB, free: 11.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.4222, allocations: 1.214 MB / 0.597 GB, free: 10.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.38e-05/0.4223, allocations: 33.95 kB / 0.597 GB, free: 10.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006246/0.4229, allocations: 0.8023 MB / 0.5978 GB, free: 9.273 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.4231, allocations: 146.9 kB / 0.5979 GB, free: 9.129 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003641/0.4234, allocations: 266.7 kB / 0.5982 GB, free: 8.863 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.4236, allocations: 353.9 kB / 0.5985 GB, free: 8.512 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005477/0.4242, allocations: 326.4 kB / 0.5988 GB, free: 8.191 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.4254, allocations: 1.054 MB / 0.5999 GB, free: 6.777 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.4272, allocations: 1.407 MB / 0.6012 GB, free: 5.004 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.4272, allocations: 8 kB / 0.6012 GB, free: 4.996 MB / 446.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002436/0.4296, allocations: 1.448 MB / 0.6026 GB, free: 3.535 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.4296, allocations: 27.88 kB / 0.6027 GB, free: 3.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/0.4297, allocations: 28.09 kB / 0.6027 GB, free: 3.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006545/0.4303, allocations: 149.6 kB / 0.6028 GB, free: 3.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.4315, allocations: 375.4 kB / 0.6032 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/0.435, allocations: 3.87 MB / 0.607 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009191/0.4359, allocations: 75.81 kB / 0.6071 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.436, allocations: 91.98 kB / 0.6071 GB, free: 14.64 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 119 * 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 (155): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005063/0.4366, allocations: 309.3 kB / 0.6074 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.4368, allocations: 107.3 kB / 0.6075 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.4385, allocations: 0.8547 MB / 0.6084 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4385, allocations: 4 kB / 0.6084 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.4385, allocations: 0 / 0.6084 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.4385, allocations: 11.98 kB / 0.6084 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.4407, allocations: 1.234 MB / 0.6096 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4407, allocations: 0 / 0.6096 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.441, allocations: 59.91 kB / 0.6097 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007641/0.4417, allocations: 183.2 kB / 0.6098 GB, free: 11.75 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.4418, allocations: 12 kB / 0.6098 GB, free: 11.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00317/0.4449, allocations: 3.744 MB / 0.6135 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4449, allocations: 0 / 0.6135 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.4463, allocations: 0.8755 MB / 0.6143 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.4465, allocations: 99.27 kB / 0.6144 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.4467, allocations: 8 kB / 0.6145 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003814/0.447, allocations: 8 kB / 0.6145 GB, free: 6.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.4471, allocations: 35.89 kB / 0.6145 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.4472, allocations: 19.98 kB / 0.6145 GB, free: 6.605 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.4483, allocations: 0.8967 MB / 0.6154 GB, free: 5.703 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4483, allocations: 3.938 kB / 0.6154 GB, free: 5.699 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001914/0.4503, allocations: 0.6267 MB / 0.616 GB, free: 5.07 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (cathode.temperature,anode.temperature) * 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 (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002869/0.4531, allocations: 2.061 MB / 0.618 GB, free: 2.953 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.4548, allocations: 0.7672 MB / 0.6188 GB, free: 2.191 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.4548, allocations: 0 / 0.6188 GB, free: 2.191 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005446/0.4553, allocations: 377.7 kB / 0.6191 GB, free: 1.797 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.4564, allocations: 182.4 kB / 0.6193 GB, free: 1.625 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.4697, allocations: 9.662 MB / 0.6287 GB, free: 7.039 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007679/0.4705, allocations: 1.063 MB / 0.6298 GB, free: 5.949 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008362/0.4713, allocations: 275 kB / 0.63 GB, free: 5.695 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006477/0.472, allocations: 499.2 kB / 0.6305 GB, free: 5.207 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.472, allocations: 4 kB / 0.6305 GB, free: 5.203 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06834/0.5403, allocations: 30.51 MB / 0.6603 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.56/24.1, allocations: 6.5 kB / 0.6603 GB, free: 6.867 MB / 0.4981 GB " [Timeout remaining time 636] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_CheckSubstancesData_StandardElectrochemicalCell2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.StandardElectrochemicalCell2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.874320823000744] Failed to read output from testmodel.py, exit status != 0: 24.28647454502061 24.303913763 23.912633688 Calling exit ...