Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001771/0.001771, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [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.00218/0.00218, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00279/0.00279, allocations: 68.55 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2918, allocations: 53.37 MB / 431.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003182/0.295, allocations: 1.932 MB / 433.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.2968, allocations: 1.269 MB / 435.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.402e-05/0.2969, allocations: 4 kB / 435.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009728/0.2979, allocations: 0.4996 MB / 435.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000237/0.2981, allocations: 199.4 kB / 435.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.2985, allocations: 171.4 kB / 436 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.2989, allocations: 219.1 kB / 436.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.713e-05/0.2989, allocations: 13.81 kB / 436.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.2992, allocations: 127.5 kB / 436.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.2995, allocations: 231.4 kB / 436.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.2995, allocations: 15.94 kB / 436.6 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.2996, allocations: 67.89 kB / 436.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002248/0.2998, allocations: 263.3 kB / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002332/0.3001, allocations: 273.9 kB / 437.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008269/0.3009, allocations: 0.7736 MB / 437.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3009, allocations: 0 / 437.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3009, allocations: 0 / 437.9 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3009, allocations: 0 / 437.9 MB, free: 0.9844 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002564/0.3035, allocations: 1.133 MB / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3035, allocations: 16.03 kB / 439.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.209e-05/0.3036, allocations: 30.75 kB / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.3037, allocations: 96.31 kB / 439.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3047, allocations: 0.7031 MB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.3048, allocations: 384 / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.3048, allocations: 8.359 kB / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.3051, allocations: 117.7 kB / 440 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3051, allocations: 0 / 440 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.3051, allocations: 4 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3051, allocations: 4 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.3054, allocations: 139.9 kB / 440.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.3065, allocations: 0.786 MB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.3067, allocations: 86.45 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3068, allocations: 76.91 kB / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.3069, allocations: 7.922 kB / 441.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.3069, allocations: 30.56 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.3069, allocations: 0 / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008047/0.3077, allocations: 332.9 kB / 441.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.3077, allocations: 59.41 kB / 441.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.3095, allocations: 1.401 MB / 442.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.3095, allocations: 29.7 kB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.3098, allocations: 384.4 kB / 443.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.3099, allocations: 11.94 kB / 443.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.3099, allocations: 17.72 kB / 443.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3101, allocations: 309.9 kB / 443.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.3103, allocations: 75.94 kB / 443.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3105, allocations: 86.52 kB / 443.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.3108, allocations: 154.4 kB / 444 MB, free: 10.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3108, allocations: 4 kB / 444 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000607/0.3114, allocations: 268.9 kB / 444.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.3114, allocations: 4 kB / 444.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3114, allocations: 0 / 444.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3114, allocations: 4 kB / 444.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.3116, allocations: 19.92 kB / 444.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3117, allocations: 4 kB / 444.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.3119, allocations: 16.03 kB / 444.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.3119, allocations: 4 kB / 444.3 MB, free: 10.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003579/0.3122, allocations: 333.6 kB / 444.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.3124, allocations: 95.42 kB / 444.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006171/0.313, allocations: 281.6 kB / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.313, allocations: 0 / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.313, allocations: 0 / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.313, allocations: 0 / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005558/0.3136, allocations: 497.8 kB / 445.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3136, allocations: 0 / 445.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.763e-05/0.3137, allocations: 11.98 kB / 445.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3137, allocations: 4 kB / 445.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.3137, allocations: 3.984 kB / 445.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3137, allocations: 0 / 445.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3137, allocations: 0 / 445.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005043/0.3142, allocations: 323.2 kB / 445.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.3145, allocations: 155.3 kB / 446 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.532e-05/0.3146, allocations: 4 kB / 446 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.3148, allocations: 15.98 kB / 446 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.3148, allocations: 7.984 kB / 446 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.3148, allocations: 4 kB / 446 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001308/0.3161, allocations: 1.017 MB / 447 MB, free: 7.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3161, allocations: 0 / 447 MB, free: 7.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.3165, allocations: 60 kB / 447.1 MB, free: 7.508 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000892/0.3173, allocations: 0.8642 MB / 447.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000377/0.3177, allocations: 132 kB / 448.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3177, allocations: 4 kB / 448.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.3179, allocations: 47.95 kB / 448.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.3184, allocations: 96.39 kB / 448.2 MB, free: 6.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.3302, allocations: 8.799 MB / 457 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.3309, allocations: 0.9967 MB / 458 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000677/0.3315, allocations: 474 kB / 458.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/0.3319, allocations: 247.4 kB / 458.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3319, allocations: 3.938 kB / 458.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1494/0.4813, allocations: 16.19 MB / 474.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.64, allocations: 4 kB / 474.9 MB, free: 11.62 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.344260396901518] Failed to read output from testmodel.py, exit status != 0: ['time', 'impedance.z.re', 'impedance.z.im'] 10.733982495963573 10.757111216 10.451401947 Calling exit ...