Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.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.001916/0.001916, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002055/0.002055, allocations: 219.9 kB / 22.26 MB, free: 5.125 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.394/1.394, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1367/0.1367, allocations: 23.89 MB / 336.3 MB, free: 11.13 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential",fmuType="me",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.002148/0.002148, allocations: 67.89 kB / 471.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3127, allocations: 59.87 MB / 0.5187 GB, free: 9.609 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.StandardLeadAcidPotential): time 0.03965/0.3523, allocations: 29.54 MB / 0.5475 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03444/0.3868, allocations: 28.47 MB / 0.5753 GB, free: 44 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.3886, allocations: 31.69 kB / 0.5753 GB, free: 12 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.3905, allocations: 0.6787 MB / 0.576 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004218/0.3947, allocations: 1.331 MB / 0.5773 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.4065, allocations: 4.356 MB / 0.5816 GB, free: 9.605 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003573/0.4101, allocations: 2.192 MB / 0.5837 GB, free: 7.406 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.4114, allocations: 0.9196 MB / 0.5846 GB, free: 6.449 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.4128, allocations: 1.048 MB / 0.5856 GB, free: 5.398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001754/0.4146, allocations: 1.148 MB / 0.5867 GB, free: 4.246 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003127/0.4149, allocations: 176 kB / 0.5869 GB, free: 4.074 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007902/0.4228, allocations: 2.707 MB / 0.5896 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00074/0.4235, allocations: 478.5 kB / 0.59 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.4248, allocations: 0.9838 MB / 0.591 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4362, allocations: 5.182 MB / 0.596 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4362, allocations: 4 kB / 0.596 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4362, allocations: 0 / 0.596 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.414e-05/0.4363, allocations: 0 / 0.596 GB, free: 10.7 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.004632/0.4409, allocations: 2.516 MB / 0.5985 GB, free: 8.137 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.441, allocations: 12.03 kB / 0.5985 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002728/0.4412, allocations: 215.6 kB / 0.5987 GB, free: 7.902 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002239/0.4435, allocations: 0.5298 MB / 0.5992 GB, free: 7.371 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.4458, allocations: 1.183 MB / 0.6004 GB, free: 6.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.446, allocations: 221.9 kB / 0.6006 GB, free: 5.918 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/0.4462, allocations: 144 kB / 0.6007 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/0.4494, allocations: 2.035 MB / 0.6027 GB, free: 3.672 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.4495, allocations: 3.938 kB / 0.6027 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.4496, allocations: 64 kB / 0.6028 GB, free: 3.605 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.275e-05/0.4497, allocations: 36 kB / 0.6028 GB, free: 3.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004183/0.4539, allocations: 2.768 MB / 0.6055 GB, free: 0.793 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0106/0.4645, allocations: 6.603 MB / 0.612 GB, free: 9.996 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.4663, allocations: 1.013 MB / 0.613 GB, free: 8.953 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008814/0.4671, allocations: 0.5091 MB / 0.6135 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.4773, allocations: 4.34 MB / 0.6177 GB, free: 4.066 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.4773, allocations: 35 kB / 0.6177 GB, free: 4.023 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004232/0.4778, allocations: 107 kB / 0.6178 GB, free: 3.918 MB / 462.1 MB Notification: Performance of pre-optimization done (n=50): time 3.526e-06/0.4778, allocations: 4 kB / 0.6178 GB, free: 3.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=50): time 0.00193/0.4797, allocations: 0.855 MB / 0.6187 GB, free: 3.051 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.4798, allocations: 115.2 kB / 0.6188 GB, free: 2.914 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.4814, allocations: 1.241 MB / 0.62 GB, free: 1.664 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.282e-05/0.4815, allocations: 37.64 kB / 0.62 GB, free: 1.621 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007671/0.4823, allocations: 1.002 MB / 0.621 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.4825, allocations: 194.5 kB / 0.6212 GB, free: 428 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004264/0.4829, allocations: 347.3 kB / 0.6215 GB, free: 72 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.483, allocations: 305.1 kB / 0.6218 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005819/0.4836, allocations: 319.8 kB / 0.6221 GB, free: 15.46 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.485, allocations: 1.32 MB / 0.6234 GB, free: 13.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.4873, allocations: 1.813 MB / 0.6252 GB, free: 11.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.629e-05/0.4873, allocations: 12 kB / 0.6252 GB, free: 11.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003036/0.4903, allocations: 1.698 MB / 0.6268 GB, free: 9.582 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.4904, allocations: 20.97 kB / 0.6269 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.513e-05/0.4904, allocations: 36 kB / 0.6269 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006603/0.4911, allocations: 165.4 kB / 0.6271 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.4924, allocations: 483.1 kB / 0.6275 GB, free: 8.887 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.4957, allocations: 3.886 MB / 0.6313 GB, free: 4.715 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.4968, allocations: 91.78 kB / 0.6314 GB, free: 4.625 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/0.497, allocations: 128 kB / 0.6315 GB, free: 4.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * 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 (197): * Single equations (assignments): 193 * 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.0006953/0.4977, allocations: 384.2 kB / 0.6319 GB, free: 4.117 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003217/0.4981, allocations: 143.1 kB / 0.632 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.5007, allocations: 1.385 MB / 0.6334 GB, free: 2.504 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.5007, allocations: 4 kB / 0.6334 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.5007, allocations: 0 / 0.6334 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5007, allocations: 0 / 0.6334 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.5034, allocations: 1.487 MB / 0.6348 GB, free: 0.918 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.5035, allocations: 4 kB / 0.6348 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003164/0.5038, allocations: 75.83 kB / 0.6349 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007164/0.5045, allocations: 175.5 kB / 0.6351 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.794e-05/0.5045, allocations: 16 kB / 0.6351 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.5076, allocations: 3.752 MB / 0.6388 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.5076, allocations: 7.938 kB / 0.6388 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.5092, allocations: 0.9918 MB / 0.6397 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.5095, allocations: 138.9 kB / 0.6399 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.5098, allocations: 8 kB / 0.6399 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.5103, allocations: 16 kB / 0.6399 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/0.5103, allocations: 47.94 kB / 0.6399 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.5104, allocations: 16 kB / 0.64 GB, free: 11.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001454/0.5118, allocations: 0.9669 MB / 0.6409 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5118, allocations: 0 / 0.6409 GB, free: 10.35 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00266/0.5145, allocations: 0.8603 MB / 0.6417 GB, free: 9.488 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (anode.temperature,cathode.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 (31): * Single equations (assignments): 27 * 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.003916/0.5184, allocations: 2.507 MB / 0.6442 GB, free: 6.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.5205, allocations: 0.8655 MB / 0.645 GB, free: 6.051 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5205, allocations: 0 / 0.645 GB, free: 6.051 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005941/0.5211, allocations: 407.5 kB / 0.6454 GB, free: 5.629 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.5226, allocations: 231.9 kB / 0.6456 GB, free: 5.406 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/0.5405, allocations: 11.87 MB / 0.6572 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000958/0.5414, allocations: 1.188 MB / 0.6584 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00123/0.5426, allocations: 398.1 kB / 0.6588 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009185/0.5436, allocations: 0.6858 MB / 0.6594 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/0.5436, allocations: 0 / 0.6594 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09176/0.6353, allocations: 41.23 MB / 0.6997 GB, free: 12.98 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/15.84, allocations: 8 kB / 0.6997 GB, free: 12.97 MB / 0.545 GB " [Timeout remaining time 644] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_StandardLeadAcidPotential.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.StandardLeadAcidPotential.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.57055022404529] Failed to read output from testmodel.py, exit status != 0: 15.970867821015418 15.986403585 15.546810996 Calling exit ...