Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.002017/0.002017, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.002125/0.002125, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.457/1.457, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.1853/0.1853, allocations: 38.55 MB / 353.2 MB, free: 12.31 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.00203/0.00203, allocations: 68.12 kB / 493.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3178, allocations: 62.46 MB / 0.5427 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005825/0.3237, allocations: 3.998 MB / 0.5466 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.3253, allocations: 0.879 MB / 0.5475 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.3255, allocations: 19.69 kB / 0.5475 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.3257, allocations: 43.94 kB / 0.5475 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005443/0.3262, allocations: 185.8 kB / 0.5477 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3264, allocations: 84.77 kB / 0.5478 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004919/0.3269, allocations: 411.5 kB / 0.5482 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.3271, allocations: 78.77 kB / 0.5483 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.3275, allocations: 184.2 kB / 0.5484 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.3278, allocations: 198.7 kB / 0.5486 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.209e-05/0.3279, allocations: 18.47 kB / 0.5486 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.215e-05/0.3279, allocations: 20.75 kB / 0.5487 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.328, allocations: 92.72 kB / 0.5487 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.3282, allocations: 106.7 kB / 0.5488 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003704/0.3286, allocations: 303.5 kB / 0.5491 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3286, allocations: 1.188 kB / 0.5491 GB, free: 11.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3286, allocations: 0 / 0.5491 GB, free: 11.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.3286, allocations: 11.81 kB / 0.5492 GB, free: 11.39 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009669/0.3295, allocations: 0.5212 MB / 0.5497 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3296, allocations: 13.83 kB / 0.5497 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.603e-05/0.3296, allocations: 9.531 kB / 0.5497 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.864e-05/0.3297, allocations: 58.48 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.874e-05/0.3297, allocations: 32.12 kB / 0.5498 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.3302, allocations: 287.1 kB / 0.55 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.3303, allocations: 17.19 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.3303, allocations: 18.97 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.3308, allocations: 294.9 kB / 0.5504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3308, allocations: 1.156 kB / 0.5504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.3308, allocations: 6.062 kB / 0.5504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3308, allocations: 5.562 kB / 0.5504 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003347/0.3312, allocations: 182.3 kB / 0.5505 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.3326, allocations: 1.149 MB / 0.5517 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.3329, allocations: 102.7 kB / 0.5518 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.819e-05/0.333, allocations: 42.92 kB / 0.5518 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.333, allocations: 1.188 kB / 0.5518 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.3331, allocations: 36.86 kB / 0.5518 GB, free: 9.082 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.3331, allocations: 0 / 0.5518 GB, free: 9.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008143/0.3339, allocations: 420.8 kB / 0.5522 GB, free: 8.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.3339, allocations: 83.36 kB / 0.5523 GB, free: 8.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.3342, allocations: 243.6 kB / 0.5526 GB, free: 8.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3342, allocations: 31.17 kB / 0.5526 GB, free: 8.457 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.3343, allocations: 208 kB / 0.5528 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.83e-05/0.3344, allocations: 37.56 kB / 0.5528 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.3345, allocations: 48.25 kB / 0.5529 GB, free: 8.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3346, allocations: 332.6 kB / 0.5532 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.34e-05/0.3347, allocations: 39.92 kB / 0.5532 GB, free: 7.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3348, allocations: 134.1 kB / 0.5533 GB, free: 7.703 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.3351, allocations: 190.6 kB / 0.5535 GB, free: 7.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3351, allocations: 1.094 kB / 0.5535 GB, free: 7.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003169/0.3354, allocations: 206.6 kB / 0.5537 GB, free: 7.406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.3354, allocations: 6.344 kB / 0.5537 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3354, allocations: 3.469 kB / 0.5537 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3354, allocations: 8.891 kB / 0.5537 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3356, allocations: 42.67 kB / 0.5538 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.3356, allocations: 16.33 kB / 0.5538 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.3357, allocations: 8.375 kB / 0.5538 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.3358, allocations: 8.594 kB / 0.5538 GB, free: 7.379 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 (24): * Single equations (assignments): 24 * 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.0001579/0.3359, allocations: 156.3 kB / 0.554 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.698e-05/0.336, allocations: 22.64 kB / 0.554 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/0.3362, allocations: 134.5 kB / 0.5541 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3362, allocations: 1.219 kB / 0.5541 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3362, allocations: 5.188 kB / 0.5541 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3362, allocations: 5.203 kB / 0.5541 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005609/0.3368, allocations: 441.2 kB / 0.5545 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.3368, allocations: 1.5 kB / 0.5545 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.3369, allocations: 29.42 kB / 0.5546 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3369, allocations: 5.438 kB / 0.5546 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.337, allocations: 2.812 kB / 0.5546 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/0.337, allocations: 4 kB / 0.5546 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.337, allocations: 5.469 kB / 0.5546 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003498/0.3373, allocations: 279.7 kB / 0.5549 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.3374, allocations: 22.92 kB / 0.5549 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.3374, allocations: 9.688 kB / 0.5549 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3375, allocations: 5.906 kB / 0.5549 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.692e-05/0.3375, allocations: 11.17 kB / 0.5549 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.3375, allocations: 3.469 kB / 0.5549 GB, free: 6.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.3377, allocations: 174 kB / 0.5551 GB, free: 6.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3377, allocations: 0 / 0.5551 GB, free: 6.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.338, allocations: 43.66 kB / 0.5551 GB, free: 6.328 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000609/0.3386, allocations: 0.8148 MB / 0.5559 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002504/0.3389, allocations: 112 kB / 0.556 GB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3389, allocations: 5.125 kB / 0.556 GB, free: 5.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.766e-05/0.339, allocations: 41.23 kB / 0.5561 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.3394, allocations: 66.81 kB / 0.5561 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.3424, allocations: 2.446 MB / 0.5585 GB, free: 3.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001812/0.3426, allocations: 166.8 kB / 0.5587 GB, free: 3.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.3427, allocations: 26.28 kB / 0.5587 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3428, allocations: 83.41 kB / 0.5588 GB, free: 3.07 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3428, allocations: 0 / 0.5588 GB, free: 3.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.3697, allocations: 5.006 MB / 0.5637 GB, free: 14.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.3, allocations: 6.391 kB / 0.5637 GB, free: 14.24 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.155669522006065]