Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.001622/0.001622, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002189/0.002189, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.466/1.466, allocations: 230.6 MB / 258.3 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1909/0.1909, allocations: 38.53 MB / 353.2 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems 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.001966/0.001966, allocations: 75.88 kB / 493.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2949, allocations: 62.46 MB / 0.5428 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005917/0.3008, allocations: 4.497 MB / 0.5472 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.3025, allocations: 0.9742 MB / 0.5481 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.3027, allocations: 19.31 kB / 0.5481 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.3029, allocations: 53.86 kB / 0.5482 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005808/0.3035, allocations: 253.3 kB / 0.5484 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.3037, allocations: 102.5 kB / 0.5485 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000551/0.3043, allocations: 0.4947 MB / 0.549 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.3045, allocations: 92.38 kB / 0.5491 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.3048, allocations: 241.9 kB / 0.5493 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000434/0.3053, allocations: 287.4 kB / 0.5496 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.3053, allocations: 23.09 kB / 0.5496 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.852e-05/0.3054, allocations: 23.53 kB / 0.5496 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.3055, allocations: 156.4 kB / 0.5498 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.3057, allocations: 171.3 kB / 0.55 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.3062, allocations: 373.6 kB / 0.5503 GB, free: 10.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3062, allocations: 1.219 kB / 0.5503 GB, free: 10.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3062, allocations: 0 / 0.5503 GB, free: 10.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3062, allocations: 0 / 0.5503 GB, free: 10.72 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001151/0.3074, allocations: 0.5948 MB / 0.5509 GB, free: 10.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3074, allocations: 13.48 kB / 0.5509 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.854e-05/0.3074, allocations: 11.28 kB / 0.5509 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.3075, allocations: 60.19 kB / 0.551 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.3076, allocations: 42.73 kB / 0.551 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/0.3081, allocations: 326 kB / 0.5513 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.3082, allocations: 15.03 kB / 0.5513 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.297e-05/0.3082, allocations: 24.38 kB / 0.5514 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005366/0.3087, allocations: 357.4 kB / 0.5517 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3088, allocations: 5.625 kB / 0.5517 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.3088, allocations: 10.72 kB / 0.5517 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.3089, allocations: 26.72 kB / 0.5517 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.3093, allocations: 237.6 kB / 0.552 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.3111, allocations: 1.329 MB / 0.5533 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.3114, allocations: 161.5 kB / 0.5534 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001916/0.3116, allocations: 93.5 kB / 0.5535 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3116, allocations: 5.453 kB / 0.5535 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.3117, allocations: 36 kB / 0.5536 GB, free: 8.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.733e-06/0.3117, allocations: 0 / 0.5536 GB, free: 8.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001354/0.313, allocations: 0.6292 MB / 0.5542 GB, free: 7.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.3131, allocations: 78.45 kB / 0.5542 GB, free: 7.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.3134, allocations: 296 kB / 0.5545 GB, free: 7.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.3134, allocations: 30.83 kB / 0.5546 GB, free: 7.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.3136, allocations: 219.8 kB / 0.5548 GB, free: 7.152 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.3136, allocations: 59.48 kB / 0.5548 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.551e-05/0.3137, allocations: 55.52 kB / 0.5549 GB, free: 7.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3139, allocations: 338.5 kB / 0.5552 GB, free: 6.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.314, allocations: 68.67 kB / 0.5553 GB, free: 6.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.3142, allocations: 166.5 kB / 0.5554 GB, free: 6.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.3145, allocations: 254.5 kB / 0.5557 GB, free: 6.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3145, allocations: 1.156 kB / 0.5557 GB, free: 6.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005228/0.315, allocations: 319.4 kB / 0.556 GB, free: 6.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.315, allocations: 10.06 kB / 0.556 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.315, allocations: 7.5 kB / 0.556 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002086/0.3153, allocations: 53.56 kB / 0.556 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.3154, allocations: 49.45 kB / 0.5561 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.317, allocations: 1.502 MB / 0.5576 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.3172, allocations: 9.656 kB / 0.5576 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.3172, allocations: 17.55 kB / 0.5576 GB, free: 4.672 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.3174, allocations: 174.9 kB / 0.5577 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.3175, allocations: 27.41 kB / 0.5578 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004684/0.318, allocations: 238.6 kB / 0.558 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.318, allocations: 1.281 kB / 0.558 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.318, allocations: 1.125 kB / 0.558 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.318, allocations: 4.891 kB / 0.558 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009726/0.3189, allocations: 0.6163 MB / 0.5586 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.3189, allocations: 0 / 0.5586 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.3191, allocations: 20 kB / 0.5586 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/0.3193, allocations: 60.78 kB / 0.5587 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3193, allocations: 4 kB / 0.5587 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.3208, allocations: 1.513 MB / 0.5602 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3208, allocations: 4.156 kB / 0.5602 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005584/0.3213, allocations: 404.4 kB / 0.5606 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/0.3214, allocations: 27.84 kB / 0.5606 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.3214, allocations: 11.92 kB / 0.5606 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.3216, allocations: 8 kB / 0.5606 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.3216, allocations: 12.05 kB / 0.5606 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.3216, allocations: 11.98 kB / 0.5606 GB, free: 1.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002233/0.3218, allocations: 207.1 kB / 0.5608 GB, free: 1.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3218, allocations: 0 / 0.5608 GB, free: 1.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004254/0.3223, allocations: 68 kB / 0.5609 GB, free: 1.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009041/0.3232, allocations: 0.9411 MB / 0.5618 GB, free: 260 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006695/0.3238, allocations: 307.3 kB / 0.5621 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3238, allocations: 0 / 0.5621 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.3242, allocations: 198.6 kB / 0.5623 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/0.3247, allocations: 75.19 kB / 0.5624 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.3286, allocations: 3.066 MB / 0.5654 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.329, allocations: 0.8065 MB / 0.5661 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.3292, allocations: 42.95 kB / 0.5662 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.3293, allocations: 103.4 kB / 0.5663 GB, free: 11.44 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3293, allocations: 0 / 0.5663 GB, free: 11.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/0.3605, allocations: 6.341 MB / 0.5725 GB, free: 5.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.35, allocations: 6.812 kB / 0.5725 GB, free: 5.25 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.245096110971645]