Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0003379/0.0003379, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.0005504/0.0008884, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000302/0.000302, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.0003767/0.0006787, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.0958/0.0958, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInstanceAPI.mkTop(): time 0.03928/0.1351, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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: simulate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=12000,outputFormat="mat",variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC",simflags="-abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS") simulate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,startTime=0,stopTime=1200,tolerance=1e-06,numberOfIntervals=12000,outputFormat="mat",variableFilter="time|energy.y|stack.cell.[0-9,]+..cell.capacitor.[0-9,]+..v|stack.cell.[0-9,]+..cell.limIntegrator.y|stack.cell.[0-9,]+..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC",simflags="-abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 8.02e-07/8.02e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.165e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01316/0.01318, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.006143/0.01933, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0004577/0.01978, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.003879/0.02366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001082/0.02475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0008481/0.02559, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.007625/0.03322, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.004039/0.03726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.01245/0.04971, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.00454/0.05425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0009377/0.05519, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.05631, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.003996/0.06031, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.005146/0.06546, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.02094/0.08639, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.002106/0.0885, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.537e-06/0.0885, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 0.0001482/0.08865, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.02613/0.1148, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0008353/0.1156, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002407/0.118, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.01888/0.1369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005746/0.1375, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009317/0.1384, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.007739/0.1461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.1463, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006731/0.1469, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.82e-05/0.147, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002734/0.1498, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02586/0.1756, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.178, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.002261/0.1803, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.1803, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.077e-05/0.1804, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=201): time 1.316e-05/0.1804, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=201): time 0.007049/0.1875, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/0.1875, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02435/0.2119, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0004988/0.2124, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.002388/0.2148, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0006142/0.2154, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.2164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 1.68e-05/0.2165, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007134/0.2172, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.2184, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.2201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/0.2202, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=312) (initialization): time 0.003527/0.2237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 3.962e-05/0.2237, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/0.2238, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.0006694/0.2244, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00259/0.227, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/0.2305, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/0.2328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002911/0.2331, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 (stack.cell[1,1].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,2].limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (272): * Single equations (assignments): 271 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,38)} Notification: Performance of prepare postOptimizeDAE: time 0.002299/0.2354, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/0.2367, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.2388, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.2388, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.2388, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.2389, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.2518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.2518, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/0.2542, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.003938/0.2581, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.0005735/0.2587, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002919/0.259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003006/0.262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/0.2664, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003693/0.27, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/0.2725, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009565/0.2735, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002775/0.2738, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.04553/0.3193, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 0.0008315/0.3201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0226/0.3427, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (171): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005747/0.3485, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.002845/0.3513, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 0.000273/0.3516, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001371/0.3529, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00754/0.3605, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04687/0.4074, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006435/0.4138, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.005156/0.4189, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006498/0.4254, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.00034/0.4258, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.07357/0.4994, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 899] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_StackRC/CCCV_StackRC.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 1.5979735236614943]